mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
NEWS: Make it clear that delegation syntax (...) requires parentheses
Ref [Feature #16253]
This commit is contained in:
parent
fb02e3192c
commit
d1ae2bc27f
1 changed files with 2 additions and 1 deletions
3
NEWS
3
NEWS
|
|
@ -191,7 +191,7 @@ sufficient information, see the ChangeLog file or Redmine
|
|||
|
||||
* +yield+ in singleton class syntax is warned and will be deprecated later [Feature #15575].
|
||||
|
||||
* Argument forwarding by <code>...</code> is introduced. [Feature #16253]
|
||||
* Argument forwarding by <code>(...)</code> is introduced. [Feature #16253]
|
||||
|
||||
def foo(...)
|
||||
bar(...)
|
||||
|
|
@ -199,6 +199,7 @@ sufficient information, see the ChangeLog file or Redmine
|
|||
|
||||
All arguments to +foo+ are forwarded to +bar+, including keyword and
|
||||
block arguments.
|
||||
Note that the parentheses are mandatory. `bar ...` is parsed as an endless range.
|
||||
|
||||
=== Core classes updates (outstanding ones only)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue