On 04/27/2010 10:32 AM, Aziz K. wrote:
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. :-)
One thing about D that appeals to me is the fact that you don't have to
type that stupid at symbol for the various attributes. I must be in a
minority, though.
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
This one's an improvement.
The current enum manifest syntax really hurts my eyes and my feelings as
a compiler writer. Please, reconsider.