News for hackers. Stuff that matters.
Re:On Learning Haskell by andrewcooke on Wednesday March 10, 2010 @01:02PM (#1181507)
one odd thing reading through was the comment that A benefit of lazy evaluation is that you can write code like an Icon or Python generator that spins forever, returning a value on each cycle, and it will only be called for the exact number of returns that the enclosing program actually needs even if the caller is itself a generator.

that sounds to me like it's making a contrast with icon and python generators. but, as far as i understand things, that's just the same as icon + python. also, "even if..." was emphasised, and i don't understand why.

i suspect i've misread it or am missing something. would someone be kind enough to set me straight? thanks...

There are no comments on this comment yet.