Hi Nick,

On 2/16/07, Nicolas Frisby <[EMAIL PROTECTED]> wrote:
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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to