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

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Oct 8 11:19:14 PDT 2008


Sean Kelly wrote:
> 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;

Walter suggested that a!b works only if b is a symbol.

>> 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.

Yah.


Andrei



More information about the Digitalmars-d mailing list