On Mon, 3 May 2010, Gregory Collins wrote:

Don Stewart <d...@galois.com> writes:

Some key points:

    * Avoid partial functions

As 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
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to