diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-11-12 17:04:11 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-11-12 17:05:10 +0900 |
commit | d1ae2bc27fd4183e6abb9e83691e192bfe1e5316 (patch) | |
tree | 10ffb4de909487e72f63985e1f2ba6ea41710818 /NEWS | |
parent | fb02e3192cef96284501c82dfa024ea8a2b0ea80 (diff) | |
download | ruby-d1ae2bc27fd4183e6abb9e83691e192bfe1e5316.tar.gz |
NEWS: Make it clear that delegation syntax `(...)` requires parentheses
Ref [Feature #16253]
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |