I find CPS to be pretty straightforward to grok, e.g.: (def set-cool (i c (o cont))
(= i!cool c)
(save-post i)
(aif cont (it)))
and then when I call set-cool:(w/link (set-cool i "not-cool" indexnew) (prn "not-cool")) Can the same control flow be done with continuations? (I haven't been able to wrap my head around continuations yet...) |