ruby-changes:58744
From: Yusuke <ko1@a...>
Date: Tue, 12 Nov 2019 17:05:29 +0900 (JST)
Subject: [ruby-changes:58744] d1ae2bc27f (master): NEWS: Make it clear that delegation syntax `(...)` requires parentheses
https://git.ruby-lang.org/ruby.git/commit/?id=d1ae2bc27f From d1ae2bc27fd4183e6abb9e83691e192bfe1e5316 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 12 Nov 2019 17:04:11 +0900 Subject: NEWS: Make it clear that delegation syntax `(...)` requires parentheses Ref [Feature #16253] diff --git a/NEWS b/NEWS index 244d5ab..893fb6e 100644 --- a/NEWS +++ b/NEWS @@ -191,7 +191,7 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS#L191 * +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 https://github.com/ruby/ruby/blob/trunk/NEWS#L199 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/