4 ms·
It's a sign of bad code. Yeah state is hard, but "else" statements are a thing. Even if a state is not "expected" if the system can represent it, it should be
by gregmac 2y ago
It's a sign of bad code.
Yeah state is hard, but "else" statements are a thing. Even if a state is not "expected" if the system can represent it, it should be treated as possible.
Crash if you have to, but don't do unexpected things or just stop executing.