ML functors seem the ideal tool for this task.  People have shown how you
can emulate them with typeclasses, but it won't necessarily be pretty...

On Mon, May 4, 2009 at 4:05 AM, Paolo Losi <[email protected]> wrote:

> Hi all,
>
> I'm following an interesting thread on the scala mailing list:
>
> http://www.nabble.com/-scala--usefulness-of-OOP-td23268250.html
>
> Martin Odersky advocates the OO features of the scala language
> proposing an interesting problem where the OO approach seams
> valuable.
>
> I would be very much interested in seeing an Haskell solution
> to that problem. Any haskell guru want to take a stub at it
> or give an opinion from a pure FP point of view?
>
> Thanks
> Paolo
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to