
3 May
2010
3 May
'10
11:21 a.m.
On Mon, 3 May 2010, Gregory Collins wrote:
Don Stewart
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.