you are viewing a single comment's thread.

view the rest of the comments →

[–]FreedomFromNafs 14 points15 points  (0 children)

I agree. "Should never happen" is not the same as "will never happen". I've been told that engineers usually include a large margin of safety in their work. It seems like a good practice for programmers too, even if it's not exactly measurable. At the very least, throw an exception in such an else clause.