News for hackers. Stuff that matters.
Re:SICP Goodness – Why you don't need looping constructs by nabla9 on Friday June 29, 2018 @11:18AM (#17424994)
Better examples:

Both

    If (b == 3):
        x = f(a)
    else:
        x = g(a)
    return x
and

    if (b == 3):
        x = f
    else:
        x = g
    return x(a)

are equivalent to:

    if (b == 3):
        return f(a)
    else:
        return g(a)

In every example the function call is in the tail position semantically. In the the two cases syntactically. The loop construct is hidden.

There are no comments on this comment yet.