[#92063] [Ruby trunk Misc#15723] Reconsider numbered parameters — zverok.offline@...
Issue #15723 has been updated by zverok (Victor Shepelev).
3 messages
2019/03/31
[ruby-core:91654] [Ruby trunk Feature#15632] Dynamic method references
From:
takashikkbn@...
Date:
2019-03-02 11:09:48 UTC
List:
ruby-core #91654
Issue #15632 has been updated by k0kubun (Takashi Kokubun).
Status changed from Open to Feedback
To get your proposal accepted, we always need to have a real-world use case. Just showing a project that calls `Object#method` with a dynamic method name might be sufficient to make us understand why it's helpful.
----------------------------------------
Feature #15632: Dynamic method references
https://bugs.ruby-lang.org/issues/15632#change-76917
* Author: kddeisz (Kevin Deisz)
* Status: Feedback
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
In Ruby 2.7 we have the new .: method reference operator, which is so great!
I was hoping to be able to use this operator dynamically (which you currently have to fall back to the `method` method). What I'm proposing is
``` ruby
foo.:"bar_#{baz}"
```
which is basically the equivalent of dyna symbols.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>