From: o...@cs.otago.ac.nz
Date: Wed, 12 Sep 2012 22:45:39 +1200
Local: Wed, Sep 12 2012 6:45 am
Subject: Re: [erlang-questions] Style wars: junk comments
> When trying to "find out what is particular module doing/responsible
I suggest that a listing generator that appends a table of contents
> for", on paper, it helps if you can find things. When reading on paper > it is easier to find things when they are alphabetically ordered. mapping each function name to a page number is another way to do this. I really don't care for any syntactic ordering principle. For example, separating the exported functions from the private
With alphabetic ordering, again, what *should* be a small change
I agree 100% that being able to find things alphabetically is
Let's put it this way:
Let me give an example.
-export([ ... sum/1 ...]).
sum(Xs) -> add_up(Xs, 0).
add_up([X|Xs], S) -> add_sup(Xs, S+X);
If the comment on sum/1 is not enough,
_______________________________________________
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||