ruby-changes:59442
From: Nobuyoshi <ko1@a...>
Date: Tue, 24 Dec 2019 16:53:17 +0900 (JST)
Subject: [ruby-changes:59442] c47106699c (master): NEWS: added references to warning option [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=c47106699c From c47106699cf2bcf426285efcd795223c200a3120 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 24 Dec 2019 14:57:55 +0900 Subject: NEWS: added references to warning option [ci skip] diff --git a/NEWS b/NEWS index b14cfdf..206e385 100644 --- a/NEWS +++ b/NEWS @@ -57,6 +57,9 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS#L57 * 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 https://github.com/ruby/ruby/blob/trunk/NEWS#L131 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 https://github.com/ruby/ruby/blob/trunk/NEWS#L157 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 https://github.com/ruby/ruby/blob/trunk/NEWS#L185 * 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 https://github.com/ruby/ruby/blob/trunk/NEWS#L224 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(...) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/