"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I had the pleasure of studying with Paul Hudak, the creator of Haskell, and I remain highly intrigued by the language. I like your introduction a lot. A couple of things I would add in the relevance-to-Perl department:
Also, I know you're trying to keep it reasonably short, but I think it would be really cool to show an example of constructing recursive polymorphic types, and the fact that you can have different data constructors with completely different type arguments. In other words, the fact that in Haskell you can implement large parts of your program logic just by the way you design your types. I like the lazy factorial example. My favorite lazy expressions in Haskell were the fibonacci sequence:
and the function for inserting commas in a string of digits according to standard notation:
In reply to Re: RFC: A Perlesque Introduction to Haskell, Part One (DRAFT)
by Errto
|
|