4 ms·
Too bad they made lazy the default.
by alnayyir 15y ago
Too bad they made lazy the default.
- BasDirks 15y agocare to elaborate?
- dons 15y agoHaskell is the only widely used language that uses lazy evaluation by default. This has historically lead to confusion and difficulties with reasoning about time and space, particularly when a programmer is coming from a strict language. Why do we care about laziness by default? Like purity, it adds power and expressiveness. ---- Finally, what would a strict Haskell be like? Here's a discussion: http://augustss.blogspot.com/2011/05/more-points-for-lazy-evaluation-in.html http://augustss.blogspot.com/2011/05/more-points-for-lazy-ev... )
- alnayyir 15y agoSpace leaks. Also, unpredictable program behavior (which nearly destroys its usefulness in embedded beyond what perhaps Galois has been doing).
- nandemo 15y agoFor what is worth, Edward Yang is writing an excellent series on space leaks in Haskell: http://blog.ezyang.com/2011/05/space-leak-zoo/ http://blog.ezyang.com/2011/05/space-leak-zoo/ The series require Haskell knowledge but this summary is fairly readable if you have a good grounding on programming language theory and implementation.
- deleted 15y ago[deleted]
- deleted 15y ago[deleted]