зеркало из https://github.com/github/ruby.git
NEWS: merge Range and Regexp being frozen [doc]
This commit is contained in:
Родитель
cd50ff8082
Коммит
fd46ff9d42
10
NEWS.md
10
NEWS.md
|
@ -57,7 +57,7 @@ sufficient information, see the ChangeLog file or Redmine
|
||||||
# version 3.0
|
# version 3.0
|
||||||
{a: 0, b: 1} => {a:}
|
{a: 0, b: 1} => {a:}
|
||||||
p a # => 0
|
p a # => 0
|
||||||
|
|
||||||
# version 2.7
|
# version 2.7
|
||||||
{a: 0, b: 1} in {a:}
|
{a: 0, b: 1} in {a:}
|
||||||
p a # => 0
|
p a # => 0
|
||||||
|
@ -192,10 +192,6 @@ Outstanding ones only.
|
||||||
p C.ancestors #=> [C, M1, M2, Object, Kernel, BasicObject]
|
p C.ancestors #=> [C, M1, M2, Object, Kernel, BasicObject]
|
||||||
```
|
```
|
||||||
|
|
||||||
* Range
|
|
||||||
|
|
||||||
* All Range objects are frozen. [Feature #15504]
|
|
||||||
|
|
||||||
* Thread
|
* Thread
|
||||||
|
|
||||||
* Introduce `Fiber.set_scheduler` for intercepting blocking operations and
|
* Introduce `Fiber.set_scheduler` for intercepting blocking operations and
|
||||||
|
@ -338,10 +334,10 @@ Outstanding ones only.
|
||||||
|
|
||||||
Excluding feature bug fixes.
|
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
|
```ruby
|
||||||
/foo/.frozen? #=> true
|
/foo/.frozen? #=> true
|
||||||
|
(42...).frozen? # => true
|
||||||
```
|
```
|
||||||
|
|
||||||
* EXPERIMENTAL: Hash#each consistently yields a 2-element array [[Bug #12706]]
|
* EXPERIMENTAL: Hash#each consistently yields a 2-element array [[Bug #12706]]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче