mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[DOC] NEWS: Mention String#+@ change with chilled string
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]
This commit is contained in:
parent
ba304ec029
commit
c3b0679241
Notes:
git
2024-12-13 19:25:52 +00:00
4
NEWS.md
4
NEWS.md
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user