[erlang-questions] comma-less lists and tuples

Yariv Sadan yarivvv@REDACTED
Wed Sep 20 16:17:30 CEST 2006


Hi,

When working with ErlSQL, I came to the opinion that in some cases,
Erlang would benefit from allowing whitespace as a delimiter in lists
and tuples in place of commas. Consider this small example:

{select, [foo, bar, baz], {from, [table1, table2]}, {where, {xyz, '=',
{'+', [1,2,3,4]}}}}

If commas were optional, this example could be written as

{select [foo, bar, baz] {from [table1, table2]} {where {xyz '=' {'+'
[1 2 3 4]}}}}

I think the second line is more readable, and it's also easier to
write. In other DSELs, the difference may be even more substantial.

What do you think? Am I missing something?

Best regards,
Yariv



More information about the erlang-questions mailing list