4 ms·
If you're considering doing this, it's important to consider what you will do when you inevitably add additional values to the enum. If you have persistence or
by powera 10y ago
If you're considering doing this, it's important to consider what you will do when you inevitably add additional values to the enum. If you have persistence or partial rollouts (and networked services always have partial rollouts) this is likely to break horribly. If the app never changes or it's used entirely in memory on a single process, you're fine.