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

> How many times did you leave a comment on some branch of code stating "this CANNOT happen" and thrown an exception?

My code is peppered with `assert(0)` for cases that should never happen. When they trip, then I figure out why it happened and fix it.

This is basic programming technique.



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

Search: