[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Paul Graham <paulgraham@yahoo.com>] Re: What is a lightweight language
Matthias Felleisen <matthias@ccs.neu.edu> writes:
> Paul writes:
>
> As in many uses of continuations, you don't actually need
> call/cc-- you can fake continuations using carefully constructed
> closures-- but having call/cc makes it cleaner and easier.
>
> It's not just cleaner and easier, it maintains invariants automatically. If
> your programmer abuses your patterns just a bit, all kind of things can
> happen and you don't even know.
I'm not sure I understand what you mean here. I thought that Paul was
suggesting using CPS in lieu of call-with-current-continuation. I
don't see CPS as being any `dirtier' that call-with-current-continuation.
> As your "scripts" grow into programs, you want this kind of assurance, and
> all kinds of other things. That's what DrScheme's growth path is about.
Definitely.