Time to rename "D" to "@D" !?

Mason McGill via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 23 14:17:35 PDT 2014


On Monday, 23 June 2014 at 20:34:59 UTC, Jonathan M Davis via 
Digitalmars-d wrote:
> It would be very cool if we could remove @ from all of the 
> built-in
> attributes, but the whole reason that they have them in the 
> first place is
> because it was decided that we didn't want to add new keywords 
> - and that was
> several years ago when D had a smaller user base. So, I really 
> don't see it
> changing at this point. If anything, we might go the _other_ 
> way and add @
> onto the attributes that don't have it in order to make them 
> more consistent
> (though I hope that we don't do that, because it's ugly and 
> more verbose).

People (I've talked to) seem to like Python decorators and Java 
annotations, and they have mandatory "@" characters.

I like the "@" because it helps me (and my editor) distinguish 
between words that *define* a computation (return type, 
parameters, etc.) and words that *describe* a computation 
(attributes).


More information about the Digitalmars-d mailing list