Tuple literal syntax

so so at so.do
Sat Oct 9 10:39:56 PDT 2010


This must have been answered many times already but i shamelessly ask once  
again..
What is the problem with :

[a, b, [c, d], e...]

At first glance it doesn't have the cases braces have and it looks much  
better.

Thanks!

On Sat, 09 Oct 2010 16:08:17 +0300, bearophile <bearophileHUGS at lycos.com>  
wrote:

> so:
>
>> The syntax is too ugly, i don't know how you call it "sugar" :)
>
> If you take a look at Fortress you may see how much they use that kind  
> of syntax. And they are able to convert the ASCII code into more elegant  
> pages that use special chars. It's a clean syntax, I think it has no  
> corner cases, I think it doesn't collide with C comma syntax operator,  
> and it's shorter than the range()/tuple() syntax. So I don't agree with  
> you :-)
>
> Bye,
> bearophile


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the Digitalmars-d mailing list