It seems pure ain't so pure after all

Jonathan M Davis jmdavisProg at gmx.com
Mon Oct 1 15:23:58 PDT 2012


On Monday, October 01, 2012 23:55:11 Tommi wrote:
> On Monday, 1 October 2012 at 21:35:16 UTC, Jonathan M Davis wrote:
> > The question is whether it's worth adding such an attribute to
> > the language, and clearly, most of us think that explicitly
> > using enum suffices whereas Tommi wants such a function
> > attribute.
> 
> You'd get simpler syntax at the cost of just one lousy new
> keyword. It's a once in a life time deal! Any takers?

Keywords are considered to be incredibly expensive. Being able to use a name 
starting with @ rather than a keyword does reduce the cost, but you're still 
going to have to drive a very hard bargain to talk Walter into adding anything 
like that to the language at this point. Adding much of _anything_ to the 
language is generally considered expensive.

- Jonathan M Davis


More information about the Digitalmars-d mailing list