Lazy evaluation

Every time I try to advertise functional programming to non-functional programmers, one of the key features I mention is lazy evaluation. ‘You can have infinite lists! How awesome is that?’ And every time I actually need or want to use this great feature, I end up evaluating some infinite data structure and killing my SBT or GHCi.

Turns out one has to be careful with awesome. Especially the infinite kind.

Published by Piotr Kaźmierczak

I like jazz and cycling.