foo!(bar) ==> foo{bar}

Tomas Lindquist Olsen tomas at famolsen.dk
Tue Oct 7 05:39:47 PDT 2008


Walter Bright wrote:
> The foo.(bar) syntax seems to be sinking. The foo{bar} seems to be the 
> most practical alternative. So, how about putting it in the next D2 
> release on a trial basis, so people can try it out and see how it looks?

I personally think it's a bad idea.

I have a danish keyboard layout:

{ == AltGr+7
} == AltGr+0

parenthesis are easier to type, as they just use shift.
This isn't really that big a problem, I already have to do it in other places, but this is just 
one more... I actually like the current syntax better though!

Just my 2 cents on this bikeshed color!



More information about the Digitalmars-d mailing list