From: nobu@... Date: 2020-10-12T07:45:54+00:00 Subject: [ruby-core:100382] [Ruby master Feature#17260] Promote pattern matching to official feature Issue #17260 has been updated by nobu (Nobuyoshi Nakada). It disallows assignments to other than local variables. https://github.com/nobu/ruby/runs/1240626799#step:15:315 ``` SyntaxError: (eval):1: syntax error, unexpected instance variable def self.inc(x) = x + 1 => @x ^~ ``` ---------------------------------------- Feature #17260: Promote pattern matching to official feature https://bugs.ruby-lang.org/issues/17260#change-87994 * Author: ktsj (Kazuki Tsujimoto) * Status: Open * Priority: Normal * Target version: 3.0 ---------------------------------------- I propose to promote pattern matching to official feature. The current specification is basically fine, but I'd like to reconsider single line pattern matching (`expr in pat`) and suggest removing it once in 3.0. -- https://bugs.ruby-lang.org/ Unsubscribe: