Skip to content

Commit

Permalink
[DOC] NEWS: Mention String#+@ change with chilled string
Browse files Browse the repository at this point in the history
From experience, a not insignificant number of people run into this when
trying upgrade. Also it's good to bring up `+@` because it's relevant in
general to the topic.

[Feature #20205]
  • Loading branch information
XrXr committed Dec 13, 2024
1 parent 562b9fc commit 8230a43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Note that each entry is kept to a minimum, see links for details.
To disable this change, you can run Ruby with the `--disable-frozen-string-literal`
command line argument. [[Feature #20205]]

* String#+@ now duplicates when mutating the string would emit
a deprecation warning, offered as a replacement for the
`str.dup if str.frozen?` pattern.

* `it` is added to reference a block parameter. [[Feature #18980]]

* Keyword splatting `nil` when calling methods is now supported.
Expand Down

0 comments on commit 8230a43

Please sign in to comment.