About @ and UDA

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 15 09:59:12 PDT 2015


On Wed, 15 Apr 2015 08:53:05 +0000, Andrea Fontana wrote:

> My 2 cents. If I remember correctly, "@" prefix in @safe, @trusted,
> @system, etc was added just to avoid keywords pollution, right?
> 
> Now UDA uses the same prefix: if some new keywords/properties/attributes
> will be added to D, the same problem will come back again... Is it a
> crazy idea to deprecate @
> for UDAs in favor of something else like #? In this way @xxx will be a
> language attribute and #xxx will be a user defined attribute. No
> pollution, no clashes.
> 
> Maybe it's not too late to do this change. I think it will be not a big
> effort to replace uda syntax in existing projects (a deprecation warning
> will help).

or make "safe" and company "context keywords". along with "body" (oh, how 
i hate the unabilily to declare "body" member!")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150415/f1545fe1/attachment.sig>


More information about the Digitalmars-d-learn mailing list