3 ms·
No, the problem described in the article is entirely unrelated to where in the enum the Other option is located. There is a different problem where keeping the
by plorkyeran 2y ago
No, the problem described in the article is entirely unrelated to where in the enum the Other option is located. There is a different problem where keeping the Other option at the end of the enum changes the value of Other, but that is not the problem that the article is about.
- jmole 2y agoWell it simplifies the logic considerably - if you see an enum value you don’t recognize (mint), you treat it as uninitialized (0). So any future new flavor will be read back as ‘0’ in older versions.