
Hello Brian, Friday, August 18, 2006, 8:54:08 PM, you wrote:
http://haskell.org/haskellwiki/OOP_vs_type_classes although i mentioned not only pluses but also drawbacks of type classes: lack of record extension mechanisms (such at that implemented in O'Haskell) and therefore inability to reuse operation implementation in an derived data type...
You can reuse ops in a derived data type but it involves a tremendous amount of boilerplate.
of course, but it's just OOP emulation. one can do the same in C, for example. i've added your letter to the page. but anyway, one of key OOP ideas was extensible records, it was idea what distinguished OOP from abstract data types approach -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com