[前][次][番号順一覧][スレッド一覧]

ruby-changes:63607

From: Marc-Andre <ko1@a...>
Date: Mon, 16 Nov 2020 07:45:17 +0900 (JST)
Subject: [ruby-changes:63607] fd46ff9d42 (master): NEWS: merge Range and Regexp being frozen [doc]

https://git.ruby-lang.org/ruby.git/commit/?id=fd46ff9d42

From fd46ff9d421dd1ad20bf3275f3289477e836ce8c Mon Sep 17 00:00:00 2001
From: Marc-Andre Lafortune <github@m...>
Date: Sun, 15 Nov 2020 17:44:48 -0500
Subject: NEWS: merge Range and Regexp being frozen [doc]


diff --git a/NEWS.md b/NEWS.md
index 69996c6..b54b5b6 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -57,7 +57,7 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS.md#L57
     # version 3.0
     {a: 0, b: 1} => {a:}
     p a # => 0
-    
+
     # version 2.7
     {a: 0, b: 1} in {a:}
     p a # => 0
@@ -192,10 +192,6 @@ Outstanding ones only. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L192
             p C.ancestors #=> [C, M1, M2, Object, Kernel, BasicObject]
             ```
 
-* Range
-
-    * All Range objects are frozen. [Feature #15504]
-
 * Thread
 
     * Introduce `Fiber.set_scheduler` for intercepting blocking operations and
@@ -338,10 +334,10 @@ Outstanding ones only. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L334
 
 Excluding feature bug fixes.
 
-* Regexp literals are frozen [[Feature #8948]] [[Feature #16377]]
-
+* Regexp literals and all Range objects are frozen [[Feature #8948]] [[Feature #16377] [Feature #15504]]
     ```ruby
     /foo/.frozen? #=> true
+    (42...).frozen? # => true
     ```
 
 * EXPERIMENTAL: Hash#each consistently yields a 2-element array [[Bug #12706]]
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]