Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: