[erlang-questions] Erlang Syntax - again
Bob Ippolito
bob@REDACTED
Tue Mar 11 02:31:03 CET 2008
On Mon, Mar 10, 2008 at 5:46 PM, Michael FIG <fig@REDACTED> wrote:
> Hi,
>
> If I could change just one thing about Erlang's syntax, I would want to allow an optional semicolon before a "case" expression's "end", just so I could do:
>
> case myfun(abc) of
> zot -> bar;
> zing -> baz;
> end,
>
> and swap the "zot" and "zing" lines without getting a compilation error.
>
> Following this through to its natural (but uglier) conclusion would be to allow trailing commas in -record definitions, -export and -import lists, and before a "fun" expression's "end".
>
Allowing trailing commas in lists would be very convenient as well,
that's one thing I really like about Python's grammar.
-bob
More information about the erlang-questions
mailing list