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

Gabriel Dos Reis gdr at integrable-solutions.net
Sun Aug 20 09:38:56 EDT 2006


John Meacham <john at repetae.net> writes:

| I was mainly specifically comparing haskell to standard OOP classes,
| 
| Most OOP languages certainly have some set of other features in addition,
| such as forms of ad hoc polymorphism or the template meta-language of
| C++, or the code reuse primitives in sather, however I was mainly
| interested in exploring base OOP and its relation to haskell
| typeclasses. As it seems to come up a lot. 
| 
| C++ templates are a whole nother ball of wax.

I believe you should not eliminate C++ templates from "standard OO"
classes -- for example, the C++ IOStream hierarchy is an example of
"standard OO" -- at least if you want to discuss "OOP" with C++ :-)



More information about the Haskell-Cafe mailing list