Actions
Feature #6413
closedMake Dir.entries default to Dir.entries(Dir.pwd)
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?
Updated by mame (Yusuke Endoh) over 12 years ago
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
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
Like0
Like0Like0Like0Like0