foo!(bar) ==> foo{bar}
Denis Koroskin
2korden at gmail.com
Wed Oct 8 11:01:08 PDT 2008
On Wed, 08 Oct 2008 21:56:57 +0400, Sean Kelly <sean at invisibleduck.org>
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
I guess that ommiting parens is allowed but discouraged in this situation.
You can always put them back if you think that missing them hurts clarity.
More information about the Digitalmars-d
mailing list