ML functors seem the ideal tool for this task.  People have shown how you can emulate them with typeclasses, but it won&#39;t necessarily be pretty...<br><br><div class="gmail_quote">On Mon, May 4, 2009 at 4:05 AM, Paolo Losi <span dir="ltr">&lt;<a href="mailto:paolo.losi@gmail.com">paolo.losi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>
<br>
I&#39;m following an interesting thread on the scala mailing list:<br>
<br>
<a href="http://www.nabble.com/-scala--usefulness-of-OOP-td23268250.html" target="_blank">http://www.nabble.com/-scala--usefulness-of-OOP-td23268250.html</a><br>
<br>
Martin Odersky advocates the OO features of the scala language<br>
proposing an interesting problem where the OO approach seams<br>
valuable.<br>
<br>
I would be very much interested in seeing an Haskell solution<br>
to that problem. Any haskell guru want to take a stub at it<br>
or give an opinion from a pure FP point of view?<br>
<br>
Thanks<br>
Paolo<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br>