Why is there a space leak here?
07 Jun 2001 10:11:15 +0200
Fergus Henderson <email@example.com> writes:
> If experts like Alastair Reid
> have trouble understanding the operational behaviour of simplified
> examples like this one, how are ordinary programmers to cope with
> complicated programs? Is lazy functional programming too difficult for
> ordinary mortals?
Of course, you can just go the strict route, and generate the whole
list before processing it. Which will blow up (since it requires an
equal amount of space), but do so in a more predictable and
comprehensible way. :-)
If I haven't seen further, it is by standing in the footprints of giants