From: mame@... Date: 2020-12-20T03:06:32+00:00 Subject: [ruby-core:101551] [Ruby master Bug#17410] One-line pattern-matching deprecation is lost on singular variable assignment Issue #17410 has been updated by mame (Yusuke Endoh). Status changed from Open to Closed It is intentional. https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20201210Japan.md#feature-17371-reintroduce-expr-in-pat-ktsj > ktsj: How about allowing the typical r-assign case as an official (not experimental) feature? > matz: go ahead ---------------------------------------- Bug #17410: One-line pattern-matching deprecation is lost on singular variable assignment https://bugs.ruby-lang.org/issues/17410#change-89334 * Author: zverok (Victor Shepelev) * Status: Closed * Priority: Normal * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- Is this intentional? Probably an effect of changing the behavior of warning categories? ```ruby RUBY_REVISION # => "1ba8d63b49318e5682a22502c5f5b70e3298da8f" [1, 2, 3] => [x, *] # (irb):8: warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby! 1 => x # ....no deprecation... ``` -- https://bugs.ruby-lang.org/ Unsubscribe: