On Mon, 22 Dec 2008 21:30:20 +0300, Max Samukha <[email protected]> wrote:

On Mon, 22 Dec 2008 10:55:27 -0600, Andrei Alexandrescu
<[email protected]> wrote:

Also, is() is a built-in thing so traits can't do all it does.
Probably, he meant __traits. Another thing to remove is the
underscores. Keywords are highlighted in all editors with D support,
so there is no need to make __traits "stand out" like that. std.traits
could be renamed to something like "std.reflection"

I treat the whole __traits feature as a hack. There are better alternatives (discussed many times) with same functionality and better syntax (Foo.traits.isAbstractClass, writefln.traits.isVirtualFunction etc to name one).

Reply via email to