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):
Is equivalent to:
This is the basis of translating imperative loops into tail recursions.
[ Parent
| on HN ]
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 ;-)