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

Make the root scope code more 'normal' looking #963

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

dfellis
Copy link
Member

@dfellis dfellis commented Nov 19, 2024

I realized that the root scope doesn't need to export anything since it's always included in the scope hierarchy, so I dropped the essentially useless exports (after a minor tweak to how the ctype syntax is parsed). Then I realized that the type-operator and function-operator binding can be done before any types or functions are defined, which would then let me use the operators where it makes sense to use them, so I also refactored everything according to that. Then I re-ordered the floating point and integer types and functions according to the new "FUI" ordering I'm going to use for tiebreaker logic in the near future. Finally I added a few more operators where it made sense to me.

@dfellis dfellis self-assigned this Nov 19, 2024
@dfellis dfellis merged commit 417ba04 into main Nov 19, 2024
13 checks passed
@dfellis dfellis deleted the make-root-scope-more-normal branch November 19, 2024 16:36
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

Successfully merging this pull request may close these issues.

1 participant