[erlang-questions] Function Declaration Syntax

Attila Rajmund Nohl attila.r.nohl@REDACTED
Fri May 13 12:16:36 CEST 2011


2011/5/13, Justus <mapandfold@REDACTED>:
> Hi all,
>
> I come to a question on function declaration syntax: why does function
> name appear in each clause?
>
> Name(Pattern11,...,Pattern1N) [when GuardSeq1] ->
>     Body1;
> ...;
> Name(PatternK1,...,PatternKN) [when GuardSeqK] ->
>     BodyK.
>
> It does not provide any information, except that one might make silly
> mistakes.
>
> If omitting it, a new problem is how to indent clauses properly and
> beautifully.

And it would also make tools like ctags less useful...



More information about the erlang-questions mailing list