From: "rubyFeedback (robert heiler) via ruby-core" Date: 2023-05-24T18:05:13+00:00 Subject: [ruby-core:113641] [Ruby master Feature#19682] ability to get a reference to the "default definee" Issue #19682 has been updated by rubyFeedback (robert heiler). bughit wrote: > "default definee" is quite clear in ruby internals The internals are not necessarily what ruby "shows" to a user/developer though. The question here is how a ruby user refers to it. It's a bit difficult to explain, but you can review what matz said over the years - from the old article "The Philosophy of Ruby" https://www.artima.com/articles/the-philosophy-of-ruby in 2003, but also in other issue discussions. See the suggestions to create Hashes with a definite / default / max-size. Either way it can change the way how people write code or think about problems. For instance, I actually do not recall matz using the word "default definee". In the blog entry you linked to from 2009 or so, the author arbitrarily reasoned that "klass" should be called "defined definee": Specifically this part: it has to be, there can be no ambiguity about where methods are defined. This issue is about exposing it, so what is unclear? How to expose it? "Could be a Module class method or a global method (Kernel) or a keyword." I'll consider opening a new one with a specific proposal around Module#nesting(n). ---------------------------------------- Feature #19682: ability to get a reference to the "default definee" https://bugs.ruby-lang.org/issues/19682#change-103285 * Author: bughit (bug hit) * Status: Rejected * 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/