std.traits vcs __traits

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 16 14:09:58 PST 2017


On Monday, 16 January 2017 at 19:45:33 UTC, Jonathan M Davis 
wrote:

> I can see that as an argument not to add something that it's in 
> std.traits to __traits or why something should be added to 
> std.traits rather than __traits, but if something already 
> exists with __traits, why duplicate that logic in std.traits? 
> It seems like it complicates std.traits for no benefit as well 
> as risking having the behavior of  __traits and std.traits 
> differ, which could cause confusion and bugs.
>
> - Jonathan M Davis

Ah my bad, I thought nordlow was proposing implementing things as 
traits,
I did overlook that there are already __traits for that.

Well then Nordlow go ahead an transform the relevant 
phobos-traits.
to make use of __traits.



More information about the Digitalmars-d mailing list