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

KennyTM~ kennytm at gmail.com
Wed Oct 8 11:29:53 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;
> 
>> 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

int a, b;
a---------b;



More information about the Digitalmars-d mailing list