summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-11-12 17:04:11 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-11-12 17:05:10 +0900
commitd1ae2bc27fd4183e6abb9e83691e192bfe1e5316 (patch)
tree10ffb4de909487e72f63985e1f2ba6ea41710818 /NEWS
parentfb02e3192cef96284501c82dfa024ea8a2b0ea80 (diff)
NEWS: Make it clear that delegation syntax `(...)` requires parentheses
Ref [Feature #16253]
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 244d5abd11..893fb6ee13 100644
--- a/NEWS
+++ b/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)