
21 Feb
2007
21 Feb
'07
1:06 p.m.
Hi Nick,
On 2/16/07, Nicolas Frisby
I don't particularly like using fromJust or head, and there's been
IMHO I think that isJust/fromJust could simply be removed. Using 'maybe' is a much better practice, it is safe and much even more expressive. head on the other hand might be considered more necessary but right now I cannot think of a situation in which it's use shows any advantage over simple pattern matching. It's anyway worth to check Neil's Safe library http://www-users.cs.york.ac.uk/~ndm/projects/safe/Safe.html