From: "ioquatix (Samuel Williams) via ruby-core" Date: 2023-05-21T12:16:44+00:00 Subject: [ruby-core:113576] [Ruby master Feature#19682] ability to get a reference to the "default definee" Issue #19682 has been updated by ioquatix (Samuel Williams). In some cases, where things like `Module.nesting[n]` is too slow, having an argument like `Module.nesting(n)` or such which gets the first `n` values can reduce the cost of the method call. I think such a feature can be reasonable, however I'd suggest you follow the standard feature request template (e.g. update this issue). I believe this may address the performance concerns but I admit I don't fully understand the use case. https://bugs.ruby-lang.org/projects/ruby/wiki/HowToRequestFeatures provides details about the feature request template. Even if it's just a simple feature request, it will help us triage your request and discuss it further. ---------------------------------------- Feature #19682: ability to get a reference to the "default definee" https://bugs.ruby-lang.org/issues/19682#change-103208 * Author: bughit (bug hit) * Status: Open * Priority: Normal ---------------------------------------- https://blog.yugui.jp/entry/846 "default definee" is a pretty important context so why not make it easy to identify? Could be a Module class method or a global method (Kernel) or a keyword. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/