* [ruby-core:91652] [Ruby trunk Feature#15632] Dynamic method references
[not found] <redmine.issue-15632.20190301190825@ruby-lang.org>
@ 2019-03-01 19:08 ` kevin.deisz
2019-03-01 19:54 ` [ruby-core:91653] " shevegen
` (3 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: kevin.deisz @ 2019-03-01 19:08 UTC (permalink / raw)
To: ruby-core
Issue #15632 has been reported by kddeisz (Kevin Deisz).
----------------------------------------
Feature #15632: Dynamic method references
https://bugs.ruby-lang.org/issues/15632
* Author: kddeisz (Kevin Deisz)
* Status: Open
* 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ruby-core:91653] [Ruby trunk Feature#15632] Dynamic method references
[not found] <redmine.issue-15632.20190301190825@ruby-lang.org>
2019-03-01 19:08 ` [ruby-core:91652] [Ruby trunk Feature#15632] Dynamic method references kevin.deisz
@ 2019-03-01 19:54 ` shevegen
2019-03-02 11:09 ` [ruby-core:91654] " takashikkbn
` (2 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: shevegen @ 2019-03-01 19:54 UTC (permalink / raw)
To: ruby-core
Issue #15632 has been updated by shevegen (Robert A. Heiler).
I am biased so I will not comment on the suggestion itself, but
I have one question (possibly I may not be the only one):
What are dyna symbols?
----------------------------------------
Feature #15632: Dynamic method references
https://bugs.ruby-lang.org/issues/15632#change-76916
* Author: kddeisz (Kevin Deisz)
* Status: Open
* 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ruby-core:91654] [Ruby trunk Feature#15632] Dynamic method references
[not found] <redmine.issue-15632.20190301190825@ruby-lang.org>
2019-03-01 19:08 ` [ruby-core:91652] [Ruby trunk Feature#15632] Dynamic method references kevin.deisz
2019-03-01 19:54 ` [ruby-core:91653] " shevegen
@ 2019-03-02 11:09 ` takashikkbn
2019-03-04 3:34 ` [ruby-core:91658] " nobu
2019-03-18 20:24 ` [ruby-core:91875] " kevin.deisz
4 siblings, 0 replies; 5+ messages in thread
From: takashikkbn @ 2019-03-02 11:09 UTC (permalink / raw)
To: ruby-core
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ruby-core:91658] [Ruby trunk Feature#15632] Dynamic method references
[not found] <redmine.issue-15632.20190301190825@ruby-lang.org>
` (2 preceding siblings ...)
2019-03-02 11:09 ` [ruby-core:91654] " takashikkbn
@ 2019-03-04 3:34 ` nobu
2019-03-18 20:24 ` [ruby-core:91875] " kevin.deisz
4 siblings, 0 replies; 5+ messages in thread
From: nobu @ 2019-03-04 3:34 UTC (permalink / raw)
To: ruby-core
Issue #15632 has been updated by nobu (Nobuyoshi Nakada).
IIRC, it was rejected (or suspended at least) by matz at the previous developers' meeting.
----------------------------------------
Feature #15632: Dynamic method references
https://bugs.ruby-lang.org/issues/15632#change-76920
* 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ruby-core:91875] [Ruby trunk Feature#15632] Dynamic method references
[not found] <redmine.issue-15632.20190301190825@ruby-lang.org>
` (3 preceding siblings ...)
2019-03-04 3:34 ` [ruby-core:91658] " nobu
@ 2019-03-18 20:24 ` kevin.deisz
4 siblings, 0 replies; 5+ messages in thread
From: kevin.deisz @ 2019-03-18 20:24 UTC (permalink / raw)
To: ruby-core
Issue #15632 has been updated by kddeisz (Kevin Deisz).
Okay, in that case this can be closed.
----------------------------------------
Feature #15632: Dynamic method references
https://bugs.ruby-lang.org/issues/15632#change-77143
* 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-03-18 20:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-15632.20190301190825@ruby-lang.org>
2019-03-01 19:08 ` [ruby-core:91652] [Ruby trunk Feature#15632] Dynamic method references kevin.deisz
2019-03-01 19:54 ` [ruby-core:91653] " shevegen
2019-03-02 11:09 ` [ruby-core:91654] " takashikkbn
2019-03-04 3:34 ` [ruby-core:91658] " nobu
2019-03-18 20:24 ` [ruby-core:91875] " kevin.deisz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).