[ ArgumentList ] vs. @( ArgumentList )

captaindet 2krnk at gmx.net
Tue Nov 6 12:54:29 PST 2012


@( ArgumentList ) is the winner for me.


On 2012-11-06 13:18, Walter Bright wrote:
> For User Defined Attributes.
>
> In the north corner we have the current champeeeeon:
>
> -------
> [ ArgumentList ]
>
> Pros:
> precedent with C#
> looks nice
>
> Cons:
> not so greppable
> parsing ambiguity with [array literal].func();
>
> ------
> In the south corner, there's the chaaaaallenger:
>
> @( ArgumentList )
>
> Pros:
> looks like existing @attribute syntax
> no parsing problems
>
> Cons:
> not as nice looking
> ------
>
> No hitting below the belt! Let the games begin!



More information about the Digitalmars-d mailing list