4 ms·
I'm in the minority I guess on not liking enums. The main thing I've run into repeatedly is difficulty to add to them without breaking things. Even if linters c
by mindvirus 5y ago
I'm in the minority I guess on not liking enums. The main thing I've run into repeatedly is difficulty to add to them without breaking things. Even if linters catch non-exhaustive switch case statements, there's always the if statement that it misses. Client compatibility is a big challenge, so I usually end up sending them as strings on the wire anyway.