Re:Programming Rules and Conventions
by tbe on Wednesday February 06, 2013 @02:07AM
(#5175267)
> 3.13 Do not program "defensively" suggests that the programmer should allow functions to crash if given unhandled input types. This does not work in most other programming languages to create a fault tolerant application.
Incidentally, this applies to languages with exceptions as well. The hardest to catch bugs are when bad behaviour is hidden inside a too general try/catch.
Incidentally, this applies to languages with exceptions as well. The hardest to catch bugs are when bad behaviour is hidden inside a too general try/catch.
> Not to trap exits, again Erlang specific.
Yes.