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

Compatibility issue between parse.y and Prism on the string returned by Hash#inspect #3357

Closed
lidimayra opened this issue Dec 27, 2024 · 1 comment

Comments

@lidimayra
Copy link

I noted different results from Hash#inspect when switching to Ruby 3.4 (example here).

Ruby 3.3

> {foo: "bar"}.inspect
=> "{:foo=>\"bar\"}"

Ruby 3.4

> {foo: "bar"}.inspect
=> "{foo: \"bar\"}"
@kddnewton
Copy link
Collaborator

That has nothing to do with Prism, it's an intentional change by the core team. Please see the Ruby 3.4 release notes https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-0-released/.

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