[erlang-questions] comma-less lists and tuples

ke han ke.han@REDACTED
Wed Sep 20 17:20:50 CEST 2006


I think you have been staring at your monitor too long ;-).
I agree it does look a bit nicer. But relative to the rest of the  
term, its not a big gain.

I have been thinking of DSEL stuff as well lately.  I was looking at  
Joe's ML9 and trying to see whether using that or prettier term  
structure is the better choice for certain types of metadata.

Boston is a nice town and its going to get cold soon...go outside and  
stretch your eyes for a few minutes ;-)
BTW, I am enjoying erlyDB...great work!!!
ke han

On Sep 20, 2006, at 10:17 PM, 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list