On Wednesday, 9 April 2014 at 15:38:51 UTC, Andrei Alexandrescu wrote:
Too restrictive. What is a valid enum value? Would an enum flags need to ascribe a name to every possible combination?

Perhaps using enum for bit flags is fundamentally incorrect and only done because there is no language support for bit flags. If bit flags were a first-class citizen of the language with its own semantics, the proposal wouldn't be so restrictive. Adding some bit flag language support may be one way to improve enum and the overall language semantics at the same time.

Reply via email to