27 Aug 16:31
Re: Re: [Haskell] Another First course in Haskell
Johannes Waldmann <waldmann <at> imn.htwk-leipzig.de>
2008-08-27 14:31:15 GMT
2008-08-27 14:31:15 GMT
Darrin Thompson wrote: > If functions on lists isn't the thing, what is the thing? "Data structures" > isn't a very satisfactory answer for a n00b like me, because it doesn't > capture Haskell's distinctive. [...] Well indeed you can (should) have problem-specific (algebraic) data types in any language. In Haskell it's just a "data" declaration, while in OO design they call it the "compositum" pattern (and need some hundred more lines to write it down). What is "distinctively Haskell"? The focus in teaching could be: (1) data abstraction (-> functions, -> higher order functions) (2) type abstraction (-> type constructors, polymorphism etc.) ... and of course all the benefits from abstraction (=> re-usability) and strong typing (=> safety). J.W.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed