[Haskell-cafe] Object oriented haskell.

Benno Fünfstück benno.fuenfstueck at gmail.com
Thu May 15 18:31:56 UTC 2014


With lens, you can write:

> [1,2,3] ^?! ix 0
1

Not that much of a difference, IMO.


2014-05-15 20:30 GMT+02:00 silvio <silvio.frischi at gmail.com>:

> Yes I know lenses do something similar. But they are restricted to
> lenses in the same way the other proposal is restricted to functions you
> couldn't write
>
> >[1,2,3] . 0
> 1
>
> and also I don't think they solve the name collision problem either.
>
> silvio
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140515/b03976bc/attachment.html>


More information about the Haskell-Cafe mailing list