On Thu, 29 Jul 2004, Henning Thielemann wrote: > > On Thu, 29 Jul 2004 [EMAIL PROTECTED] 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". -- [EMAIL PROTECTED] _______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe
