Hacker News new | ask | show | jobs
by gregmac 609 days 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.