Things that may be removed

Denis Koroskin 2korden at gmail.com
Mon Dec 22 10:45:06 PST 2008


On Mon, 22 Dec 2008 21:30:20 +0300, Max Samukha  
<samukha at voliacable.com.removethis> wrote:

> On Mon, 22 Dec 2008 10:55:27 -0600, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> 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).



More information about the Digitalmars-d mailing list