181. One-line enums use = and |; variants with fields use the block form (2026-11-21)
- Decision. The empty optional is
Noneeverywhere in the spec (lowercasenonesurvives only as theprintoptionnone:).notis a prefix operator at precedence level 12, below comparisons, and is removed from theunaryproduction. A one-line enum isenum Dir = L | R | U | D; an enum with payload variants uses the indented block. The comma formenum Dir: N, E, S, Wis gone. - Why. The rebuild found each of these spelled two ways (H-NONE-CASE, H-NOT-PRECEDENCE, H-ENUM-ONE-LINE).
=is what the grammar, the implementation and the conformance cases already use; the precedence follows Python, sonot a == bisnot (a == b). - Reverse. Add
':' variant (',' variant)* NLtoenum_decl, or movenotback intounary.