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

Dot access with symbols instead of idents #138

Closed
olynch opened this issue Feb 14, 2024 · 0 comments
Closed

Dot access with symbols instead of idents #138

olynch opened this issue Feb 14, 2024 · 0 comments
Assignees

Comments

@olynch
Copy link
Member

olynch commented Feb 14, 2024

It's overkill to use the scope machinery for anything except for the top-level variables. This means that in x.a, we resolve x using the scope machinery, but a is just a symbol. This is because once we have resolved the top level, field access should not have any shadowing.

So we will need to change AlgDot to have a Symbol head, and AlgStruct to have an OrderedDict of fields rather than a TypeScope. @kris-brown this is ASKEM priority 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

2 participants