
29 Jul
2004
29 Jul
'04
11:06 a.m.
On Thu, 29 Jul 2004, Henning Thielemann wrote:
On Thu, 29 Jul 2004 enrico.santoemma@tin.it wrote:
I'm very fresh on Haskell. Exactly... chapter 13 of SOE :) Are type classes different from Java classes?
Type classes are a static issue. They are roughly speaking bundles of functions that can be overloaded.
To put it another way, they're closer to Java interfaces - though type classes are a more general idea, as demonstrated by the multi-parameter type classes supported by ghc et al. You can think of them as a predicate - "this type has implementations for these overloaded functions". -- flippa@flippac.org