General

Profile

shioyama (Chris Salzberg)

  • Login: shioyama
  • Registered on: 07/17/2017
  • Last sign in: 04/19/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 4 5

Activity

05/18/2023

02:39 AM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
> now addressed with packwerk from what I understand.
Ah, not exactly (or at least not entirely), but that's another story! :sob:
shioyama (Chris Salzberg)

05/17/2023

08:04 AM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
Thanks, that makes sense.
In one way we're not far apart. In another, though, I think we still are, because the difference is really between whether control is delegated to the caller or the callee. "isolation", which is what I'm after ...
shioyama (Chris Salzberg)

05/16/2023

09:28 AM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
> Our main discrepancy is that I don't like implicit nesting. I want you to open a file and see what it defines.
Agreed.
> ...
Between an app and its gems, yes (at the cost of what I consider boilerplate). Between two gems, there is no...
shioyama (Chris Salzberg)

05/14/2023

11:05 AM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
> The question was: If `/foo` is a root directory, and you want to associate to it an anonymous module as custom namespace, how would `/foo/bar.rb` look like?
Sorry, I read your comment too quickly. I actually removed the entire conce...
shioyama (Chris Salzberg)
03:47 AM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
I wrote:
> I personally do not believe this is necessary.
In fact, I realized this is not quite complete. I don't want to require file-level changes for two reasons.
One, it requires changes to every file to make a project (gem or oth...
shioyama (Chris Salzberg)
02:24 AM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
> Let's talk anonymous namespaces for a moment in Zeitwerk. If you could assign an anonymous namespace to `/foo` in Zeitwerk, what would go in the top-level `class` or `module` keyword in `/foo/baz.rb`?
I think this is the key point whe...
shioyama (Chris Salzberg)

05/13/2023

06:01 AM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
Thanks @fxn for your reply! I was going to update this, but I brought it up at the recent [Dev Meeting](https://bugs.ruby-lang.org/issues/19599#note-14) before RubyKaigi and although there was interest, Matz seemed not to be in favour of... shioyama (Chris Salzberg)

05/10/2023

12:58 AM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
@byroot pointed out today that if it was possible to both register a require path _and_ a block to an autoloaded constant, then this feature may also allow replacing the [Tracepoint class event](https://github.com/fxn/zeitwerk/blob/a7c4a... shioyama (Chris Salzberg)
12:54 AM Ruby Misc #19431: DevMeeting at RubyKaigi 2023
I'll attend! shioyama (Chris Salzberg)

05/09/2023

09:54 AM Ruby Feature #19633: Allow passing block to `Kernel#autoload` as alternative to second `filename` argument
cc @fxn
I know you're not in favour of what I'm doing with autoloads on anonymous modules, but hoping you'd agree this would be a useful thing to have in general and for Zeitwerk specifically. I haven't actually walked through the ful...
shioyama (Chris Salzberg)

Also available in: Atom