[Haskell-cafe] IO (Either a Error) question
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Sun May 9 08:19:43 EDT 2010
On May 9, 2010, at 06:18 , Ben Millwood wrote:
> On Sun, May 9, 2010 at 7:27 AM, wren ng thornton <wren at freegeek.org>
> wrote:
>>
>> The only examples I can think of where we'd want 'fail'-able
>> patterns are
>> entirely pedagogical (and are insignificantly altered by not using
>> 'fail'-able patterns). I can't think of any real code where it would
>> actually help with clarity.
>
> You're not a fan of e.g.
>
> catMaybes xs = [x | Just x <- xs]
I've always had the feeling that if I need catMaybes, I haven't
thought through the data representation (or possibly manipulation)
fully.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100509/7da1b90d/PGP.bin
More information about the Haskell-Cafe
mailing list