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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B425C1F4C1 for ; Tue, 12 Nov 2024 13:47:33 +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=e5ZjvlDU; 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=By4B0Xz7; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1731419221; bh=TDql5KOIKSOaHe4Xpk1I1HRCFm9cuAU2X1Ov+Iyrnzg=; 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=e5ZjvlDU+Jr4Gcp6CGlXRk6yExv4tt8aXtiLmGx2r1S7Hc+QAyHXVf2Yz04TggFLE K9DibcKQc93miq+MgQh1Y/SCsH7Y0jPime0cG1Tzx+dz9RFzFh5Ni3FFczvmjVle/C gGA1gQA/HlRGmPu7WCyG6UiXAhWWiD4bkSZMVLqU= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 5554344C98 for ; Tue, 12 Nov 2024 13:47:01 +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=By4B0Xz7; dkim-atps=neutral Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 5569244B57 for ; Tue, 12 Nov 2024 13:46:49 +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=2u9Ix4w9yn6PhpG5x0YMe6NAuLUxSylh5dU5P+k+dzY=; b=By4B0Xz7NvJYm4kbDONbqLxBKM9zLvspYJxYEMDV1JFkjWr9QFnJK3H2oKk9VexyR57D FFaQR9qSfa1PAl645GXcHwBIf17JWP7QZUF2kz+DM4GkU6PrplXkZSx5FinHIFhRVR8gVC n2anL90KMsAUkga938mySvl7CRbTkoYdOI8H4+Uv7/J5oM52rNwuHE7OlKQa9a+3HDUFT3 /uX6aNDXNrpPVerm4eyHF8Bpwi+jgcb4UiXm4hHH+181c8vzQcvpzUaKdEYQ+ky3Ir1FwP kZ9pLpXYwNHYpsZk11v5kNeXDrVnRkZOOHshT3dXXQRCDC/iHURAmDebYJrI17Xw== Received: by recvd-76b48cd7f5-pr6mz with SMTP id recvd-76b48cd7f5-pr6mz-1-67335C47-5 2024-11-12 13:46:47.362741485 +0000 UTC m=+5255426.728251249 Received: from herokuapp.com (unknown) by geopod-ismtpd-8 (SG) with ESMTP id J7Bo2ImhQryq05wX2R325Q for ; Tue, 12 Nov 2024 13:46:47.331 +0000 (UTC) Date: Tue, 12 Nov 2024 13:46:47 +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: Dan0042 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: 96563 X-SG-EID: =?us-ascii?Q?u001=2EHy4LB1bizMxDg=2Fk6r7dYDS9qUDe3jZN8DIPm4OS+F86l7XdLFEAVX=2F2lh?= =?us-ascii?Q?z0Jj=2Ft7J6DgKnq5Qaf6Ba4+egck=2FoKuUHMa9Cn6?= =?us-ascii?Q?7D+EQ8vUJVum8+fQmqd9g4qzNj2kF=2FNuDTlmKJO?= =?us-ascii?Q?Co2Fn=2FR0XmRaTdylLBClscf6VuW09=2FZrQ=2Fa2RpC?= =?us-ascii?Q?Xu1gR50iGDG12m3Jyz2bDMt1kP0TKgIf=2FSXoLpa?= =?us-ascii?Q?sMOn+JzgqjGxJBPPz8Lgm5U5+suDOSj+cEsljCs?= =?us-ascii?Q?tcB90s=2Fpvzps9aEv2sz=2FJYgUIw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: 5SPWL7NXAGGTSM5HFYZTPJ5IV6MPKH4J X-Message-ID-Hash: 5SPWL7NXAGGTSM5HFYZTPJ5IV6MPKH4J 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:119894] [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: "Dan0042 (Daniel DeLorme) via ruby-core" Cc: "Dan0042 (Daniel DeLorme)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20884 has been updated by Dan0042 (Daniel DeLorme). Description updated Eregon (Benoit Daloze) wrote in #note-3: > I'd suggest to update the description to use `Ruby::VERSION`). Ok, did that. ---------------------------------------- Feature #20884: reserve "Ruby" toplevel module for Ruby language https://bugs.ruby-lang.org/issues/20884#change-110598 * 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/