Proposal: Replace __traits and is(typeof(XXX)) with a 'magic

Justin Johansson no at spam.com
Tue Nov 3 10:59:43 PST 2009


> I really like 'static' as the namespace, it would be awesome if it did not just 
> contain 'meta' stuff.
> 
> Could we lose 'pragma', 'typeof', unary 'is', 'typeid', '__traits'.
> 
> It makes a lot of sense to just say to someone "if you want to do something at  
> compile time, just check the 'static' documentation".

"just check the static documentation"

Either very punny or Nirvana; imagine the language not being a moving target
and Andrei not having to update TDPL every few weeks.

Then again, I don't like giving the language critics a possible play on words:

"just check the stagnant documentation"

Justin :-)




More information about the Digitalmars-d mailing list