[Haskell-cafe] Re: What I wish someone had told me...

Don Stewart dons at galois.com
Thu Oct 16 17:33:04 EDT 2008


derek.a.elkins:
> On Thu, 2008-10-16 at 13:53 -0700, Daryoush Mehrtash wrote:
> > So does this mean that the reason for complexity of generics is the
> > Java inheritance?
> > 
> > BTW, in addition to the article I posted, This site:
> > http://www.angelikalanger.com/GenericsFAQ/JavaGenericsFAQ.html   has a
> > FAQ on Java generics that is 500+ pages long!     In Haskell you have
> > parametrized types but I don't think you need 500+ page faq to explain
> > it.  
> 
> All you need is a T-shirt: http://www.cafepress.com/skicalc

Indeed, implementing "generics" is an undergraduate exercise, also,

    https://cgi.cse.unsw.edu.au/~cs3161/08s2/cgi-bin/moin.cgi/Assignment%202

And the full spec. fits in one page (or one tshirt, if that's your
preferred medium for typing rules).

-- Don


More information about the Haskell-Cafe mailing list