[Haskell-cafe] What is your favourite Haskell "aha" moment?

Jerzy Karczmarczuk jerzy.karczmarczuk at unicaen.fr
Wed Jul 11 13:07:56 UTC 2018


My goodness...
Neither Simon, nor the five  responders ever mention *laziness*!

For me it was THE "aha" moment, or rather a long period...

The problem with popularizing laziness is that too many short comments 
(on Internet) on it are not serious. People speak mainly about infinite 
lists (as if somebody really cared about this "infinity"), or that lazy 
program do not evaluate some expressions, which should *economise* some 
time, which usually is not true...

*

For me, lazy programs permit to represent dynamic processes as data.

Iterations as mathematical structures.

Co-recursive perturbational schemes (or asymptotic expansions, etc.), 
which are 10 or more times shorter than the orthodox approaches, and 
remain readable, and natural.

Laziness makes it possible to play with continuations, thus: "making 
future explicit",  in a particularly constructive manner.

===========================

Second section...

Somebody mentioned "type families".

Why not, but for an audience outside of the FP realm??
If something about types, then for sure the automatic polymorphic 
inference, which remains a bit mysterious for many people, including my 
(comp. sci.) students. And the /*Curry-Howard correspondence*/.

All the best.


Jerzy Karczmarczuk

/Caen, France/




---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180711/430e2661/attachment.html>


More information about the Haskell-Cafe mailing list