Re: RFC 47 (v1) Universal Asynchronous I/O
[email protected] (Ken Fox) Tue, 08 Aug 2000 21:19:44 -0400
| Newsgroups | perl.perl6.language.flow |
|---|---|
| Organization | None Apparent |
| Message-ID | <[email protected]> |
Buddha Buck wrote: > They represent the -entire- future history of the program. You imply that the entire current state of a program is captured in a continuation. Is that really true? In a pure functional language it is (side-effect free). In Perl (and Scheme) assignments to global variables probably won't be restored -- continuations are outrageously expensive/inefficient and I have trouble seeing that all reachable data is going to be captured. It would make them useless even for experimentation. > Continuations can be used to implement co-routines: IMHO, we should leave continuations to language theorists and implement directly things like non-local goto (catch/throw) and threads. Besides, continuations can be implemented as a module... ;) - Ken