is(x = module) vs. __traits(isModule, x)
Walter Bright
newshound2 at digitalmars.com
Sat Oct 10 00:12:39 UTC 2020
On 10/8/2020 2:38 AM, Jacob Carlborg wrote:
> Oh, god, no. We already have way too many special magic members. We don't need
> any more. `__traits` is great because it has it's own namespace. It occupies
> just one keyword and you can add all the identifiers in the world without the
> risk of breaking existing code.
Exactly right. It's also there to avoid the need for inventing special syntax
for all the weird things it does.
More information about the Digitalmars-d
mailing list