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

Proper scoping for blocks #2

Open
kiedtl opened this issue Feb 14, 2024 · 0 comments
Open

Proper scoping for blocks #2

kiedtl opened this issue Feb 14, 2024 · 0 comments
Labels
good first issue Good for newcomers lang-fix Correct existing language feature.

Comments

@kiedtl
Copy link
Owner

kiedtl commented Feb 14, 2024

s/ASTNodeList/Block/g in common.zig, where Block is something along the lines of struct { body: ASTNodeList, scope: *Scope }.

Would allow for per-block locals, types, etc, and provide better error reporting (due to blocks carrying their own srcloc info). Would also allow cleaning up the Cond struct.

Shouldn't be too disruptive of a change.

@kiedtl kiedtl added lang-new New language feature proposal good first issue Good for newcomers labels Feb 14, 2024
@kiedtl kiedtl added lang-fix Correct existing language feature. and removed lang-new New language feature proposal labels Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers lang-fix Correct existing language feature.
Projects
None yet
Development

No branches or pull requests

1 participant