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...
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
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe