summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-09-08 11:53:27 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-09-26 10:23:02 +0200
commit6ffc045a817fbdf04a6945d3c260b55b0fa1fd1e (patch)
treee830df0ad8e9d5ad4413d1008115699b703e215b /NEWS
parent4a4c5028258e53f3395af29655a66bcef796fd73 (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--NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 70c5ff6bdf..4e168518ca 100644
--- a/NEWS
+++ b/NEWS
@@ -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::