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

Move from string_interner to symbol_table #66

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

tertsdiepraam
Copy link
Contributor

@tertsdiepraam tertsdiepraam commented Sep 23, 2024

This interner is global and doesn't require us to pass an object around, which simplifies the code a lot. Identifiers can therefore just implement Display, so we can just print them and things that contain identifiers (AST, types, etc.).

Copy link

@bal-e bal-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, @tertsdiepraam! Having a Display impl was far more handy than I thought possible.

@tertsdiepraam tertsdiepraam merged commit 21434a9 into main Sep 23, 2024
12 checks passed
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.

2 participants