Skip to content

[PRISM] Frozen string literals should be fstrings #9460

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

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

peterzhu2118
Copy link
Member

Frozen string literals should not just be frozen, but deduplicated as an fstring so that two string literals with the same contents are the exact same object.

Fixes ruby/prism#2095.

Frozen string literals should not just be frozen, but deduplicated as an
fstring so that two string literals with the same contents are the exact
same object.

Fixes ruby/prism#2095.
@peterzhu2118 peterzhu2118 merged commit 55b7121 into ruby:master Jan 9, 2024
@peterzhu2118 peterzhu2118 deleted the prism-fstr branch January 9, 2024 17:24
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.

[COMPILER] Frozen regex
2 participants