[ ArgumentList ] vs. @( ArgumentList )

deadalnix deadalnix at gmail.com
Wed Nov 7 16:01:23 PST 2012


Le 08/11/2012 00:14, nazriel a écrit :
> On Tuesday, 6 November 2012 at 19:18:39 UTC, 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!
>
> @() with required ().
> So we will still have place for new language attributes like @rox etc ;)

Language attribute must die :D


More information about the Digitalmars-d mailing list