[ruby-core:122795] [Ruby Feature#17473] Make Pathname to embedded class of Ruby

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/
participants (1)
-
Eregon (Benoit Daloze)