On Mon, 3 May 2010, Gregory Collins wrote:
Don Stewart <[email protected]> writes:Some key points: * Avoid partial functionsAs an important corollary to this one I would add: "never throw exceptions from pure code". They often leak out from "catch" blocks and ruin your day.
It's not possible to throw exceptions from pure code. You can only call 'error' and that's another name for 'undefined', i.e. you have a partial (non-total ?) function.
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
