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

Context should provide a one stop shop for symbol resolution #201

Open
dburgener opened this issue Apr 28, 2023 · 0 comments
Open

Context should provide a one stop shop for symbol resolution #201

dburgener opened this issue Apr 28, 2023 · 0 comments

Comments

@dburgener
Copy link
Owner

symbol_in_context(), by design only resolves bound symbols. There's also TypeInfo;:typeinfo_from_string(), which turns a string into a TI, while performing "this" resolution, but not bound symbol lookup.

As a result, various call-sites for these seem to augment with various mixes of lookups.

We should create a new function in Context that does full resolution, including "this", bound symbols, aliases, and lookups in the global maps (both the Type and Function maps). Once that exists, caller sites can be converted to use it one by one.

This is too big a code change for pre-0.1, but something we should consider for the next major release after 0.1

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

No branches or pull requests

1 participant