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

RazvanN razvan.nitu1305 at gmail.com
Thu Oct 8 12:43:48 UTC 2020


On Wednesday, 7 October 2020 at 23:17:18 UTC, Walter Bright wrote:
> I'm not sure which is the one to go, but we should not have 
> both.

I think that the line of reasoning is that __traits should be 
leveraged by std.traits to offer user-friendly alternatives. 
Therefore, in this case I suggest that we deprecate `is(S == 
module)` (since a module is not a type anyway) and implement an 
isModule template in std.traits.


More information about the Digitalmars-d mailing list