Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • About half way through:

        greet x = "Hello " ++ x
        main    = print (greet greet)

    (assuming you did mean the "main =" part). This looks like a type error to me (can't unify [Char] with (a -> b)).

    Nice, introduce GADT (without its scary name) right off the bat. Pretend like it's always been there. :-)

    You probably want more examples for the pattern matching stuff. You showed one example for each WTDI, but if you're really trying to teach it, you probably need more. Come