[ruby-core:122795] [Ruby Feature#17473] Make Pathname to embedded class of Ruby
From:
"Eregon (Benoit Daloze) via ruby-core" <ruby-core@...>
Date:
2025-07-16 07:24:30 UTC
List:
ruby-core #122795
Issue #17473 has been updated by Eregon (Benoit Daloze). Dan0042 (Daniel DeLorme) wrote in #note-23: > I don't understand this at all. What's the problem with having `require "fileutils"` inside #mkpath ? Those dependencies are part of the stdlib anyway, so it's not like they could be missing. Is it for some reason forbidden to call `require` in a method of a core class? I had the exact same thought, this seems the obvious solution. ---------------------------------------- Feature #17473: Make Pathname to embedded class of Ruby https://bugs.ruby-lang.org/issues/17473#change-114076 * Author: hsbt (Hiroshi SHIBATA) * Status: Closed * Assignee: akr (Akira Tanaka) ---------------------------------------- pathname is one of most useful utility class of Ruby. I'm happy to use Pathname without require it. Any thought? -- 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/lists/ruby-core.ml.ruby-lang.org/