diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-09-08 11:53:27 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-09-26 10:23:02 +0200 |
commit | 6ffc045a817fbdf04a6945d3c260b55b0fa1fd1e (patch) | |
tree | e830df0ad8e9d5ad4413d1008115699b703e215b /NEWS | |
parent | 4a4c5028258e53f3395af29655a66bcef796fd73 (diff) |
[EXPERIMENTAL] Make Symbol#to_s return a frozen String
* Always the same frozen String for a given Symbol.
* Avoids extra allocations whenever calling Symbol#to_s.
* See [Feature #16150]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2437
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -197,6 +197,14 @@ RubyVM:: * RubyVM.resolve_feature_path moved to $LOAD_PATH.resolve_feature_path. [Feature #15903] [Feature #15230] +Symbol:: + + Modified method:: + + * Symbol#to_s now always returns a frozen String. The returned String is + always the same for a given Symbol. This change is experimental. + [Feature #16150] + Time:: New methods:: |