Chad Joan:

It's always bugged me that D enums seem to prevent the separation of two distinct enum features:
- Type safety.
- Forced name qualification.

Usually I find the former incredibly useful and the latter to be a hindrance. It's very inconsistent with how module scoping works: module qualification is not required unless there is an ambiguity. I wish enums worked the same way.

I'd like modules to require qualifications on default, just like in Python :-)

Bye,
bearophile

Reply via email to