From: marcandre-ruby-core@... Date: 2020-12-19T15:34:09+00:00 Subject: [ruby-core:101543] [Ruby master Bug#17410] One-line pattern-matching deprecation is lost on singular variable assignment Issue #17410 has been updated by marcandre (Marc-Andre Lafortune). Matz can confirm, but I think it's ok. `1 => x` can never *not* match and is there to stay. `[1, 2, 3] => [x, *]` is probably more subject to change (what happens if no match, what is acceptable syntax), although I happen to think it's simply brilliant. ---------------------------------------- Bug #17410: One-line pattern-matching deprecation is lost on singular variable assignment https://bugs.ruby-lang.org/issues/17410#change-89325 * Author: zverok (Victor Shepelev) * Status: Open * 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: