3 ms·
> As mentioned in the document, continuation passing style can at times be a little difficult to read. Very true. Fortunately, the CPS transform is automatic,
by zeveb 7y ago
> As mentioned in the document, continuation passing style can at times be a little difficult to read.
Very true. Fortunately, the CPS transform is automatic, so one could write a compiler which compiles non-CPS to CPS code.
This is pretty easy in Scheme or Lisp (less so the latter, because it's a much more complex & powerful language); it's not nearly easy in other languages, but still doable.