News for hackers. Stuff that matters.
Re:SICP Goodness – Why you don't need looping constructs by alkonaut on Friday June 29, 2018 @08:34AM (#17424109)
Can you expand on this? What's a trivial exmaple?

Doesn't it depend on how the iterations are compiled? Seeing how e.g. a normal continuation is compiled in C#.

    foreach(var thing in Things)
    {
       if (thing.IsAlive)
         yield return thing;
    }

Those will compose (At least I think they will compose in the sense you mean) because they are alrerady sugar for a state machine and not a simple iteration. The for-loop construct didn't imply "loop here until done" in the sense that doesn't compose.

There are no comments on this comment yet.