4 ms·
I am not sure this has anything to do with enums. When sending serialized data over the network you always have to have logic for dealing with the situation whe
by nilkn 6y ago
I am not sure this has anything to do with enums. When sending serialized data over the network you always have to have logic for dealing with the situation where what you get isn't quite what you expected. Not doing that is what causes things to break, not using enums.
- cle 6y agoIn my experience, these kind of bugs happen overwhelmingly with enums. The nature of enums makes this mistake pretty easy to make. Enums are otherwise fantastic tools, I’m just pointing out that in certain common contexts they have some ergonomic problems.
- deleted 6y ago[deleted]