Using Enumeration Generators
Remove hand-written enum conversion while keeping storage names, fallbacks, and compatibility decisions explicit.
Series
Related entries collected as a working thread.
Remove hand-written enum conversion while keeping storage names, fallbacks, and compatibility decisions explicit.
Extend an enum with generated lookup and named values, without hand-writing conversion switches.
A stored enum number hides its meaning. An innocent edit can then change what years of data appear to say.