Project

General

Profile

Actions

Feature #6413

closed

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

Added by shevegen (Robert A. Heiler) over 12 years ago. Updated 7 months 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 master - Feature #6412: Make Dir.entries default to Dir.entries(Dir.pwd)Rejected05/08/2012Actions

Updated by mame (Yusuke Endoh) over 12 years ago

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

Updated by mame (Yusuke Endoh) almost 12 years ago

  • Target version set to 2.6
Actions #3

Updated by naruse (Yui NARUSE) almost 7 years ago

  • Target version deleted (2.6)

Updated by matz (Yukihiro Matsumoto) 7 months ago

  • 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: Atom PDF

Like0
Like0Like0Like0Like0