From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 289401F4C1 for ; Tue, 12 Nov 2024 06:15:32 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=IG926SFH; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=FxJhFsEf; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1731392128; bh=zfUPRA2za1WnSehqHiu6MstIN9I8nvQreifInEoPQf0=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=IG926SFHQXzVK8mSztu7jldOBJr7kELv/4TEH19KeDqS93O91MYaAHh1IM7ZmrFUV /LUbDBDVlUZKi5G5B4ErqdXDUff7oXILwL2uM8xgBMBCU1Fb5a/VMVraND/Yi0BZoe UU5hpNCnjLKF9mBY09X10w7qsjE+m1gbyIej94Yg= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id E4DA044B46 for ; Tue, 12 Nov 2024 06:15:28 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=FxJhFsEf; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 6079543BF1 for ; Tue, 12 Nov 2024 06:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=Z1lVmLVn839DDPksIypJWAJzYoFOAk5BmgDF4lvRL5U=; b=FxJhFsEf4s3hLni9Mtbce+OvGbcU3q0MnpkzGTCbM3keHs1TVWmrmbB/obx1r9oRO79u Sta+XGQZ15EDODLT+7UFVLg5kTnaorYb7MF+cNN2j7qgsy7T+9EwKVUMBOtJpUH0dLDI1Y 5cc9MyqwHzWQmXt2Pbe0y9kgQyqkrLvPusRVXmM2mb8xGCTLFiHwiXjNjgurIFP53XNUEK GtBf28Wy4tJlF4uu37yIzUUy+1n34v+8LSIkFlFFaUL0DaEFcxZsGWWBlreOxtrpt7dcOC Rv2gyNkT7XhQt2wDwqaggiIJs9Vfguj4tSBUN9XArXv5viJFnKlRE4YPHNHpEGVw== Received: by recvd-94b86bfcc-2pdb2 with SMTP id recvd-94b86bfcc-2pdb2-1-6732F272-E 2024-11-12 06:15:14.511959393 +0000 UTC m=+5228200.013160784 Received: from herokuapp.com (unknown) by geopod-ismtpd-6 (SG) with ESMTP id ySa8SH7RSSGPYKjNqEVlIw for ; Tue, 12 Nov 2024 06:15:14.493 +0000 (UTC) Date: Tue, 12 Nov 2024 06:15:14 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 20884 X-Redmine-Issue-Author: Dan0042 X-Redmine-Issue-Priority: Normal X-Redmine-Sender: hsbt X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 96553 X-SG-EID: =?us-ascii?Q?u001=2ESNtsfy=2FRYrUmxOeGSN+Ah1new64UppKFg8YOAgra6KK6sIhqEP6LswYh4?= =?us-ascii?Q?tCf2AhAD20FCmXanLCSpdJ9Heq83FKB1eeA=2FIRz?= =?us-ascii?Q?=2FUFVHcMb3GPHw4FekHQKD5PUqhiibrOnn2ymtQR?= =?us-ascii?Q?zv1WUcqnxY1njE79ibYzS7Ykmxr6BjJxW3b0O7H?= =?us-ascii?Q?cf1XVjFfy5WLcuMXnGZBRTGUjtDX50H7fEJ0tw=2F?= =?us-ascii?Q?PFxsiYmdiSLqyV0chu13H5EaIHwDYYdO2CZFUVo?= =?us-ascii?Q?f5WLOPXnvLkryHkKxy4USbuXPA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: TBVDB5G7D7D3EWQDEAIDLL4WVLERLXFD X-Message-ID-Hash: TBVDB5G7D7D3EWQDEAIDLL4WVLERLXFD X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119885] [Ruby master Feature#20884] reserve "Ruby" toplevel module for Ruby language List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "hsbt (Hiroshi SHIBATA) via ruby-core" Cc: "hsbt (Hiroshi SHIBATA)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20884 has been updated by hsbt (Hiroshi SHIBATA). I prefer this proposal. >The "ruby" gem name is reserved, so there's no conflict. https://rubygems.org/gems/ruby FYI: I'm an owner of `ruby` gem. >I suppose I'd expect constants to be upper case still, e.g. Ruby::VERSION. +1 ---------------------------------------- Feature #20884: reserve "Ruby" toplevel module for Ruby language https://bugs.ruby-lang.org/issues/20884#change-110575 * Author: Dan0042 (Daniel DeLorme) * Status: Open ---------------------------------------- `Ruby` would be a convenient namespace for many features of the Ruby language, in particular APIs related to the interpreter. All these constants: RUBY_VERSION RUBY_RELEASE_DATE RUBY_PLATFORM RUBY_PATCHLEVEL RUBY_REVISION RUBY_COPYRIGHT RUBY_ENGINE RUBY_ENGINE_VERSION RUBY_DESCRIPTION would have made a lot of sense as `Ruby::Version` etc. `Thread::Backtrace::Location` would have made a lot of sense as `Ruby::Backtrace::Location` `RubyVM` is considered specific to CRuby; so `RubyVM::AbstractSyntaxTree` should be `Ruby::AbstractSyntaxTree` if it is meant to be present in other implementations. In #6648 there's a bit of contention over where `ruby_args` should be. `RubyVM`, `RbConfig`, `Process` have all been proposed, but `Ruby` would be an excellent choice. `Process.argv0` was added in Ruby 2.1 but the `Process` namespace is really about OS-level process control (fork, signals, euid, limits) while this argv0 is not (in `ps` it's neither value of COMMAND nor CMD) so it would have made sense as `Ruby.argv0` The "ruby" gem name is reserved, so there's no conflict. https://rubygems.org/gems/ruby All in all, "Ruby" is an appropriate namespace for many Ruby things. We don't want to break compatibility over this, but we could at least start small by reserving the namespace, and see how it grows from there. module Ruby Version = ::RUBY_VERSION end -- 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/lists/ruby-core.ml.ruby-lang.org/