aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-24 14:57:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-24 14:57:55 +0900
commitc47106699cf2bcf426285efcd795223c200a3120 (patch)
treefbe185adac01c6d1c103bb1a3e2883e7a2e09b78 /NEWS
parente57d6194218efc73c30f3fed9dd321d2e357030b (diff)
downloadruby-c47106699cf2bcf426285efcd795223c200a3120.tar.gz
NEWS: added references to warning option [ci skip]
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b14cfdf7fa..206e385212 100644
--- a/NEWS
+++ b/NEWS
@@ -57,6 +57,9 @@ sufficient information, see the ChangeLog file or Redmine
* https://speakerdeck.com/k_tsj/pattern-matching-new-feature-in-ruby-2-dot-7
* Note that the slides are slightly obsolete.
+* The warning against pattern matching can be suppressed with
+ {-W:no-experimental option}[#label-Warning+option].
+
==== The spec of keyword arguments is changed towards 3.0
* Automatic conversion of keyword arguments and positional arguments is
@@ -128,6 +131,8 @@ sufficient information, see the ChangeLog file or Redmine
h = {}; def foo(*a) a end; foo(h) # [{}]
h = {}; def foo(a) a end; foo(h) # {}
+* Above warnings can be suppressed also with {-W:no-deprecated option}[#label-Warning+option].
+
==== Numbered parameters
* Numbered parameters as default block parameters are introduced.
@@ -152,6 +157,8 @@ sufficient information, see the ChangeLog file or Redmine
end
foo { puts "Hello" } #=> warning: Capturing the given block using Kernel#proc is deprecated; use `&block` instead
+ This warning can be suppressed with {-W:no-deprecated option}[#label-Warning+option].
+
* Kernel#lambda with no block in a method called with a block raises an exception.
def bar
@@ -178,9 +185,11 @@ sufficient information, see the ChangeLog file or Redmine
* Setting <code>$;</code> to a non-nil value is warned now.
Use of it in String#split is warned too.
+ This warning can be suppressed with {-W:no-deprecated option}[#label-Warning+option].
* Setting <code>$,</code> to a non-nil value is warned now.
Use of it in Array#join is warned too.
+ This warning can be suppressed with {-W:no-deprecated option}[#label-Warning+option].
* Quoted here-document identifiers must end within the same line.
@@ -215,6 +224,8 @@ sufficient information, see the ChangeLog file or Redmine
end
foo { p :ok }
+ This warning can be suppressed with {-W:no-deprecated option}[#label-Warning+option].
+
* Argument forwarding by <code>(...)</code> is introduced. [Feature #16253]
def foo(...)