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

Issue #17473 has been updated by Dan0042 (Daniel DeLorme).
* akr: To use the following four methods, require "pathname" is needed for a while * find, mkpath, rmtree, mktmpdir * rationale: they require other libraries (find gem, fileutils, tmpdir) * in future, they (except mktmpdir) should be rewritten in pure C (or rbinc) without dependency to find and fileutils
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? ---------------------------------------- Feature #17473: Make Pathname to embedded class of Ruby https://bugs.ruby-lang.org/issues/17473#change-114072 * 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)
-
Dan0042 (Daniel DeLorme)