[Haskell-cafe] C++ class = neutered (haskell class + haskellexistential)

Bulat Ziganshin bulat.ziganshin at gmail.com
Sat Aug 19 02:40:59 EDT 2006


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 at gmail.com



More information about the Haskell-Cafe mailing list