ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "matz (Yukihiro Matsumoto) via ruby-core" <ruby-core@ml.ruby-lang.org>
To: ruby-core@ml.ruby-lang.org
Cc: "matz (Yukihiro Matsumoto)" <noreply@ruby-lang.org>
Subject: [ruby-core:117546] [Ruby master Feature#6413] Make Dir.entries default to Dir.entries(Dir.pwd)
Date: Wed, 17 Apr 2024 04:58:25 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-107940.20240417045825.3414@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-6413.20120508221234.3414@ruby-lang.org

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/

           reply	other threads:[~2024-04-17  4:58 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <redmine.issue-6413.20120508221234.3414@ruby-lang.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-107940.20240417045825.3414@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    --cc=noreply@ruby-lang.org \
    --cc=ruby-core@ml.ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).