Skip to content

Use rb_sym2str instead of SYM2ID - #561

Merged
hsbt merged 1 commit into
ruby:masterfrom
jhawthorn:rb_sym2str
Dec 6, 2023
Merged

hsbt merged 1 commit into
ruby:masterfrom
jhawthorn:rb_sym2str

Conversation

@jhawthorn

Copy link
Copy Markdown
Member

This avoids pinning an id to the symbol used if a dynamic symbol is passed in as a hash key.

rb_sym2str is available in Ruby 2.2+ and json depends on >= 2.3.

This avoids pinning an id to the symbol used if a dynamic symbol is
passed in as a hash key.

rb_sym2str is available in Ruby 2.2+ and json depends on >= 2.3.
@hsbt

hsbt commented Dec 6, 2023

Copy link
Copy Markdown
Member

👍

@hsbt
hsbt merged commit 7864324 into ruby:master Dec 6, 2023
@jhawthorn
jhawthorn deleted the rb_sym2str branch December 6, 2023 01:23
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