[Haskell-cafe] Re: ANNOUNCE: GHC survey results

Bulat Ziganshin bulatz at HotPOP.com
Tue Jun 28 12:50:00 EDT 2005

Hello Johannes,

Tuesday, June 28, 2005, 7:38:04 PM, you wrote:

>> type Figure = Circle ...
>> type Figure |= Box ...

JW> interface Figure
JW> class Circle implements Figure
JW> class Box implements Figure

this don't give ability to create polymorphic collections

JW> well I never would want to do that - and OO gurus do not recommend
JW> it either. See Gamma et al, Design patterns, Introduction,
JW> where they advise to use interface inheritance, but to avoid
JW> implementation inheritance. This is exactly the situation
JW> we have in Haskell.

you are completely skipped the point that these is just for C++
programmers wanting to program in Haskell and aimed to give them
faster learning path and easy to use instruments

Best regards,
 Bulat                            mailto:bulatz at HotPOP.com

More information about the Haskell-Cafe mailing list