[plt-scheme] Behind the scenes, is everything running using continuation passing style?
On Wed, 14 Nov 2007 00:37:44 -0500, Jon Zeppieri <zeppieri at gmail.com>
wrote:
>
> That depends on the implementation. In the case of PLT, the answer is
> no. There is a scheme compiler named Chicken, which does perform CPS
> transformation on source *and* actually uses the CPS continuations in
> its call/cc. That's an important point, by the way: even compilers
> that do perform CPS transformations (and I don't believe there are
> many of these any more) do not necessarily use the CPS continuations
> to implement call/cc.
This may be a dumb question... but if a compiler already is converting
stuff to CPS, then why would it not just use that as the basis for that
implementation's call/cc? ie, what would be a reason to not do that?
Psy-Kosh