[email protected]
[Top] [All Lists]

Re: [Haskell-cafe] How to fulfill the "code-reuse" destiny of OOP?

Subject: Re: [Haskell-cafe] How to fulfill the "code-reuse" destiny of OOP?
From: Sebastian Fischer
Date: Wed, 13 Jan 2010 11:14:59 +0100

On Jan 13, 2010, at 11:00 AM, Sittampalam, Ganesh wrote:

Type classes allow you to dispatch based on return type, and on the instantiations of generic parameters. Neither of these things is reasonably possible with interfaces.

There is recent work that generalises the capabilities of interfaces in Java:


Seeing type-class features in Java disguise highlights the differences between the two concepts that you mention.

Sebastian


-- 
Underestimating the novelty of the future is a time-honored tradition.
(D.G.)



_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe
<Prev in Thread] Current Thread [Next in Thread>