Phobos' std.conv.to-conversion from enum to string doesn't scale beyond hundreds of enumerators

Per Nordlöw per.nordlow at gmail.com
Sun Jun 24 22:09:43 UTC 2018


On Sunday, 24 June 2018 at 15:46:58 UTC, Per Nordlöw wrote:
> I would like to see a new trait named, say, `primaryMembers` or 
> `nonAliasMembers` that returns exactly what the switch needs.

Alternatively, we could define a new `__traits(isAlias, 
enumeratorSymbol)` that evaluates to true for enumerator to 
aliases and use that to static-if-filter inside the static 
foreach loop. Comments on that!


More information about the Digitalmars-d mailing list