[Haskell-cafe] C++ class = neutered (haskell class +
bulat.ziganshin at gmail.com
Sat Aug 19 02:40:59 EDT 2006
Friday, August 18, 2006, 8:54:08 PM, you wrote:
>> 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
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
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe