User Defined Attributes
Walter Bright
newshound2 at digitalmars.com
Tue Nov 6 10:36:49 PST 2012
On 11/6/2012 10:19 AM, Jacob Carlborg wrote:
> No, what's the difference between this:
>
> @every_body_writes_their_names_like_this int a;
>
> And
>
> ["every_body_writes_their_names_like_this"] int a;
>
> None.
>
You're right, there is none. That's why using type names as attributes is more
scalable and robust.
I understand your desire to have attributes be implicitly declared, but I think
that implicit declarations have historically been seductive, and much later were
realized to be a mistake. This pattern has happened over and over :-)
For example:
@seperate
and sometime later:
@separate
How long will it be before that bug is noticed?
More information about the Digitalmars-d-announce
mailing list