[Haskell-beginners] interface/abstract class: what is the haskell way?
etouzery at gmail.com
Sat Feb 9 08:39:43 CET 2013
> > Here there is an "interface", the record of functions. But each module
> > basically define a function returning that record. Sure, the module must
> > implement that function, the same as you must implement it in OO
> > but each module can also make up its mind for the name of the function.
> You could also name the classes implementing the interface in any way,
> but will probably choose telling und helpful names.
Right, in an OO language i name the subclass, here the function. I was
thinking the way i was because i import those modules qualified so the
module name already gives me a description.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners