[erlang-questions] comma-less lists and tuples

Kirill Zaborski <>
Wed Sep 20 16:35:12 CEST 2006


Welcome back to LISP? :)

On 9/20/06, Yariv Sadan <> wrote:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060920/ca545ba6/attachment.html>


More information about the erlang-questions mailing list