Closed njh closed 3 weeks ago
Oops, I missed this at the end:
OK, I withdraw the proposal. The autoload method will stay (for Ruby3.0).
Matz.
Do we keep it or remove it 🤔
If it is working, keep it.
Pretty sure autoload
is not going away seeing Zeitwerk exists and is very useful. Projects like rack, sinatra, mail and probably many more is using autoload
.
With Ruby 3.2.0, this bug https://bugs.ruby-lang.org/issues/18782 Race conditions in autoload when loading the same feature with multiple threads
was fixed.
Ok, great. Thank you!
matz says: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead) https://bugs.ruby-lang.org/issues/5653