Why no call/cc?

Dec 21, 2011 at 9:53 AM

Hi, you mention that you don't support call/cc, and I'm curious as to why that is..? Is it due to lack of time/will or is it due to technical limitations on the CLR/DLR/.NET platform?

If the latter, could you elaborate a bit?

Coordinator
Dec 21, 2011 at 11:40 AM

IronScheme does a have a limited call/cc. It is similar to Racket's call/ec.

In short, you can only call a captured continuation in its dynamic extent, anything else will fail.

Why? No direct support on the CLR for it, and if I implement via a CPS transformation, it makes IronScheme about 10 times slower. Sorry, speed wins every time.