is(x = module) vs. __traits(isModule, x)

Jacob Carlborg doob at me.com
Thu Oct 8 09:42:22 UTC 2020


On Wednesday, 7 October 2020 at 19:44:59 UTC, H. S. Teoh wrote:

> However, the way things turned out, it appears that __traits 
> has become sorta a de facto standard for metaprogramming 
> primitives, and Phobos has kinda fallen behind on the job.  So 
> perhaps it's time to rethink this decision?

Yes, because just wrapping existing `__traits` in templates don't 
give you much value, just a different syntax. But it comes with 
all the problems that templates bring (which have been discussed 
many times).

--
/Jacob Carlborg



More information about the Digitalmars-d mailing list