[erlang-questions] Function Declaration Syntax

David Mercer <>
Fri May 13 15:25:46 CEST 2011


On Friday, May 13, 2011, Justus wrote:

> 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.

Syntactic salt?  http://en.wikipedia.org/wiki/Syntactic_salt#Syntactic_salt

Cheers,

DBM




More information about the erlang-questions mailing list