[Haskell-cafe] Haskell and the Software design process

Henning Thielemann lemming at henning-thielemann.de
Mon May 3 11:21:43 EDT 2010


On Mon, 3 May 2010, Gregory Collins wrote:

> Don Stewart <dons at 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.


More information about the Haskell-Cafe mailing list