| ▲ | throwaway27448 23 minutes ago | |
> You can implement a namespace-like thing on top of it and together with continuations it can surpass the interactivity of Clojure. I'm curious what you're thinking of here. Can you expound? | ||
| ▲ | pushpankar 3 minutes ago | parent [-] | |
Environments are top level things that can store functions and other defintions. These can be mutable. The other side of this is continuation. A continuation is invocable multiple times in scheme. Lets say you want to debug a function. ``` (define (f1 arg1 arg2) ;; body calls f2 and others ) ``` Now you can capture the continuation just before the body of the f1. Then, you can use chez's eval-in-continuation to evaluate the updated body of the function. Once you are satisfied, you can continue the continuation with output. If there is problem in f2, you can update f2 and retry from f1 again. You can walk up/down the continuation stack to go back to different point and try from there. Similarly, you can declare a function, implement its body, eval-in-continuation, update the body until you are satisfied, and then move on to next thing. Almost all features are there. It just needs a good editor support and some ux design. | ||