[erlang-questions] Erlang Syntax - again
Tue Mar 11 02:31:03 CET 2008
On Mon, Mar 10, 2008 at 5:46 PM, Michael FIG <fig@REDACTED> wrote:
> 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;
> 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.
More information about the erlang-questions