|
|
|
|
|
by dllthomas
4444 days ago
|
|
You can implement private mutable state (and dynamic polymorphism behind an interface) with records of closures. Depending on what you mean by "subclasses" here, they may follow trivially. Haskell typeclasses are a poor match to OOP, as you say. |
|
Interesting. Can you point me to an example?