1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

NEWS: group keyword arguments related items together

This commit is contained in:
Marc-Andre Lafortune 2020-12-22 02:52:05 -05:00 committed by Marc-André Lafortune
parent 5a6d27fe22
commit fd745cc92c
Notes: git 2020-12-23 03:48:39 +09:00

18
NEWS.md
View file

@ -14,15 +14,6 @@ sufficient information, see the ChangeLog file or Redmine
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. [[Feature #14183]]
* Arguments forwarding (`...`) now supports leading arguments.
[[Feature #16378]]
```ruby
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
```
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting a single rest argument and no keywords.
@ -40,6 +31,15 @@ sufficient information, see the ChangeLog file or Redmine
# 3.0 => [[[1, {:a=>1}]], {}]
```
* Arguments forwarding (`...`) now supports leading arguments.
[[Feature #16378]]
```ruby
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
```
* Pattern matching(`case/in`) is no longer experimental. [[Feature #17260]]
* One-line pattern matching is redesigned. [EXPERIMENTAL]