From: "matz (Yukihiro Matsumoto) via ruby-core" Date: 2024-04-17T04:58:25+00:00 Subject: [ruby-core:117546] [Ruby master Feature#6413] Make Dir.entries default to Dir.entries(Dir.pwd) Issue #6413 has been updated by matz (Yukihiro Matsumoto). Status changed from Assigned to Rejected As a language with concurrency, I don't think depending on the current directory implicitly is a good idea. Matz. ---------------------------------------- Feature #6413: Make Dir.entries default to Dir.entries(Dir.pwd) https://bugs.ruby-lang.org/issues/6413#change-107940 * Author: shevegen (Robert A. Heiler) * Status: Rejected * Assignee: matz (Yukihiro Matsumoto) ---------------------------------------- Is there a reason why Dir.entries requires one argument? I think it would be easier and more convenient for the userruby if it would default to the current directory. Like so: Dir.entries(i = Dir.pwd) Or is there a reason why this is not done? -- 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/postorius/lists/ruby-core.ml.ruby-lang.org/