[Haskell-cafe] Lazy evaluation from "Why Functional programming matters"

Brandon S Allbery KF8NH allbery at ece.cmu.edu
Tue Oct 5 12:43:52 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/5/10 10:52 , C K Kashyap wrote:
> And I had built up this impression that laziness distinguished Haskell
> by a huge margin ... but it seems that is not the case.
> Hence the disappointment.

Haskell is lazy-by-default and designed around lazy evaluation, whereas most
other languages are strict by default, designed around strictness, and make
you do extra work to get laziness which you then may lose rather easily.
Sometimes it's as easy as using an iterator, other times it means passing
around closures and invoking them at just the right time.

- -- 
brandon s. allbery     [linux,solaris,freebsd,perl]      allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university      KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyrVcgACgkQIn7hlCsL25W5tQCeMoY6XCcDLKFh3tbwdrliQSqd
grcAnjCGqxBwRsEoI2pG3+ZgA4biSDAw
=kgwK
-----END PGP SIGNATURE-----


More information about the Haskell-Cafe mailing list