Project

General

Profile

Actions

Feature #6413

closed

Make Dir.entries default to Dir.entries(Dir.pwd)

Feature #6413: Make Dir.entries default to Dir.entries(Dir.pwd)

Added by shevegen (Robert A. Heiler) over 13 years ago. Updated over 1 year ago.

Status:
Rejected
Target version:
-
[ruby-core:44943]

Description

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?


Related issues 1 (0 open1 closed)

Is duplicate of Ruby - Feature #6412: Make Dir.entries default to Dir.entries(Dir.pwd)RejectedActions

Updated by mame (Yusuke Endoh) over 13 years ago Actions #1 [ruby-core:45086]

  • Status changed from Open to Assigned
  • Assignee set to matz (Yukihiro Matsumoto)

Updated by mame (Yusuke Endoh) almost 13 years ago Actions #2

  • Target version set to 2.6

Updated by naruse (Yui NARUSE) almost 8 years ago Actions #3

  • Target version deleted (2.6)

Updated by matz (Yukihiro Matsumoto) over 1 year ago Actions #4 [ruby-core:117546]

  • 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.

Actions

Also available in: PDF Atom