[ ArgumentList ] vs. @( ArgumentList )

Paulo Pinto pjmlp at progtools.org
Wed Nov 7 09:06:59 PST 2012


Am 06.11.2012 20:18, schrieb Walter Bright:
> 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!


Already too late to the party. I join my voice to the @() group.

--
Paulo


More information about the Digitalmars-d mailing list