Change some keywords and enum manifests?
Aziz K.
aziz.koeksal at gmail.com
Tue Apr 27 08:32:54 PDT 2010
Hi,
Since we've got the attribute syntax (@identifier), wouldn't it be good to
convert certain keywords to use this syntax?
E.g.:
nothrow -> @nothrow
pure -> @pure
Bam! Two fewer keywords in the language. :-)
On a related note, I would like to suggest to get rid of the ugly enum
manifest syntax.
Possibilities:
1. Use 'pure' or @pure for marking manifest variables. (In case the
suggestion above is not accepted.)
2. Use new @manifest attribute. E.g.:
enum int x = 2010; // Instead of this,
@manifest int x = 2010; // we use this. :-) :D
The current enum manifest syntax really hurts my eyes and my feelings as a
compiler writer. Please, reconsider.
--
Dil: http://code.google.com/p/dil/
More information about the Digitalmars-d
mailing list