News for hackers. Stuff that matters.
Re:How to slice your code into continuations by TeMPOraL on Tuesday May 07, 2019 @04:35AM (#19847542)
One of the particular insights I gained reading SICP long time ago is that local variables are equivalent to function parameters. That is (using CL syntax):

  (let ((a 3)
        (b 2))
    (some code using a b))
Is equivalent to:

  (funcall (lambda (a b)
             (some code using a b))
           3
           2)
This is the basis of translating imperative loops into tail recursions.
Re:How to slice your code into continuations by dreamcompiler on Tuesday May 07, 2019 @09:07AM (#19848978)
You can go even further by currying the second one and then you're writing a Haskell compiler ;-)