Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globals/Bindings: Continuations with Mini-Lisp #452

Open
yossigil opened this issue Aug 23, 2021 · 2 comments
Open

Globals/Bindings: Continuations with Mini-Lisp #452

yossigil opened this issue Aug 23, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@yossigil
Copy link
Collaborator

Can be done if we add two primitives for READ and WRITE, but more importantly, by modifying the a-list as we do in the JS and Chic implementations.

Yet another option is to implement the eval using what is known as continuation, in which recursion replaces sequential execution.

The book makes a little lie on relying on the REPL to define functions.
Once this is agreed, we can still decide whether an aborted execution undoes the sets done within it. But, since the SET operation is a global one, it makes no sense to undo it.

@yossigil yossigil self-assigned this Aug 23, 2021
@yossigil yossigil added the enhancement New feature or request label Aug 23, 2021
@yossigil yossigil changed the title Implementation of REPL in mini-LISP. Globals/Bindings: Continuations with Mini-Lisp Aug 23, 2021
@OfirMarkowitz1
Copy link
Collaborator

I'm not sure I follow the issue. Is this relevant to #464 ?

@yossigil
Copy link
Collaborator Author

Don't bother; advanced rewriting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants