[Haskell-beginners] Equivalent of inheritance in Haskell
dan portin
danportin at gmail.com
Wed Dec 15 07:43:00 CET 2010
You might be interested in Oleg's paper Haskell's Overlooked Object
System<http://homepages.cwi.nl/%7Eralf/OOHaskell/code.html>,
although programming in an object-oriented style is neither elegant nor
idiomatic Haskell. Aside from the actual embedding of an object-oriented
language inside Haskell, the main benefit of the paper is the opening survey
of approaches to object-oriented style programming in Haskell. Not
surprisingly, however, encapsulation and subtyping are the most difficult
concepts from object-oriented languages to capture with Haskell type classes
and algebraic data types.
On Tue, Dec 14, 2010 at 7:25 PM, C K Kashyap <ckkashyap at gmail.com> wrote:
> Thanks Antoine,
>
> > Is there a particular problem you're trying to solve? we might be able
> > to take the conversation in a less speculative direction.
> >
> At this point its academic ... I have programmed in OOPS for a long
> time so, I just wanted to understand how one would go around something
> like that in Haskell.
>
> I came across something called the expression problem and it talks
> about "open data type" - is this the solution?
>
> Regards,
> Kashyap
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20101214/6e369c61/attachment.htm>
More information about the Beginners
mailing list