[erlang-questions] DRY principle and the syntax inconsistency in fun vs. vanilla functions

Des Small small@REDACTED
Thu May 19 07:54:30 CEST 2011


On Wed, 18 May 2011, Daniel Goertzen wrote:

> I think this is a key issue here: multi-clause funs just don't happen all that often.  

They happen to me all the time.  Every time I write a recursive function, 
I first write the clause for the base case, then a clause (or clauses) 
for the others.

I don't currently wish for a different syntax, though.

Cheers,

Des
-- 
Des Small,
Scientific Programmer, JIVE
Contact details on http://www.jive.nl/~small


More information about the erlang-questions mailing list