Skip to main content
2 events
when toggle format what by license comment
Mar 3, 2013 at 16:31 comment added user8709 +1 for typeclasses - the main difference between a Haskell typeclass and a Java interface is that the typeclass is associated with the type after both are separately declared. You can use an old type through a new "interface" as easily as you can use an old "interface" to access a new type. For data hiding, you hide the implementation of the type in a module. At least according to Bertrand Meyer of Eiffel fame, an OOP class is a kind of module.
Mar 3, 2013 at 4:41 history answered Jimmy Hoffa CC BY-SA 3.0