std.traits vcs __traits

Bauss via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 16 01:09:34 PST 2017


On Sunday, 15 January 2017 at 12:53:04 UTC, Nordlöw wrote:
> Why is there both
>
> http://dlang.org/phobos/std_traits.html
>
> and the builtin
>
> https://dlang.org/spec/traits.html
>
> ?
>
> Should we modify std.traits to make use of __traits? I've 
> noticed measurably faster compilations with __traits instead of 
> std.traits for simple things such as isIntegral, isUnsigned, 
> etc.
>
> If so, I'll happily make that happen!

I thought it already did that. I hope this can be a thing so 
std.traits actually makes use of what's build-in, rather than 
attemtping to apply the same logic that arleady exist elsewhere.


More information about the Digitalmars-d mailing list