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

Implement function, lexical scope, and let #4

Open
alandipert opened this issue Oct 23, 2011 · 0 comments
Open

Implement function, lexical scope, and let #4

alandipert opened this issue Oct 23, 2011 · 0 comments
Labels

Comments

@alandipert
Copy link
Member

Background

eval in main.c knows how to find and execute special forms - functions defined in C and referred to the global environment - but user functions, the let binding, and lexical scope still all need to be implemented. The bottom of functions might be let, or vice-versa - they are in essence two ways to create a closure, and should share semantics.

Implementing implies a mechanism for merging scopes and supporting the idea of a scope chain, which is also not done. Before we do this, we probably want to move away from using alists for environments, and use real hash tables instead.

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

No branches or pull requests

1 participant