From: shevegen@... Date: 2019-05-05T15:32:40+00:00 Subject: [ruby-core:92552] [Ruby trunk Feature#15824] respond_to pattern for pattern match Issue #15824 has been updated by shevegen (Robert A. Heiler). I don't want to comment so much on the issue as such, but I would like to point out that it may be a better idea to start with a new idea not on highest complexity. I am not sure if everyone fully understood pattern matching yet so in my personal opinion it may be better to see how pattern matching is used before making it more complex (including syntactic changes). But that's just my opinion, anyway; some of the syntax appears to become no longer recognizable ruby (to me). ---------------------------------------- Feature #15824: respond_to pattern for pattern match https://bugs.ruby-lang.org/issues/15824#change-77919 * Author: fukajun (Jun Fukaya) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- ruby������������������������������������������������������������������... Interger, Array ������ constant������������������������������������������������������������������������������������������������������������������������ duck typing������������������������������������������������������������ruby������������������������������������������������������������������������������������������ respond_to pattern ```ruby class Runner def run end def stop end end runner = Runner.new case runner in .run & .stop :reachable in .start & .stop :unreachable end ``` -- https://bugs.ruby-lang.org/ Unsubscribe: