[ ArgumentList ] vs. @( ArgumentList )

deadalnix deadalnix at gmail.com
Tue Nov 6 12:14:46 PST 2012


Le 06/11/2012 20:47, Manu a écrit :
> I actually quite liked Tristan's argument.
>
> [attr, attr2] feels more like what it is, an annotation. It does
> nothing, has no effect on the declaration on its own.
> the @attr syntax looks like existing attributes, and with that kinda
> comes the presumption that they actually DO something, affect the code
> generated in some way.

This is definitively what they should do at some point.

> For that reason, I buy the argument that [attrs...] being visually
> distinct makes more sense, more like what it is.
>
> Perhaps it should be termed 'annotation' rather than 'attribute'?
>
>
> On 6 November 2012 21:38, ponce <spam at spam.org <mailto:spam at spam.org>>
> wrote:
>
>     I like @(ArgumentList) better for stated reason: it looks like
>     existing @attributes.
>
>



More information about the Digitalmars-d mailing list