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

Sean Kelly sean at invisibleduck.org
Wed Oct 8 10:56:57 PDT 2008


Steven Schveighoffer wrote:
> 
> struct a(bool x) {...}
> bool b;
> a!!b c;

This example is sufficient for me to recommend against the "omit parens" 
syntax.  Particularly since chained nots are legal, if pointless:

a!!!!!!b c;

> I don't think I'll get used to it :(

I'd get used to it, but I think it reduces at-a-glance clarity, which is 
a problem since the point of this is to find a syntax more appealing to 
new users.


Sean



More information about the Digitalmars-d mailing list