CARVIEW |
Select Language
HTTP/2 200
x-amz-id-2: 6ZYZg0amiy6bbEJz9OG1PZA1ve7BOv3HrMk8MIeuH55T3HAvqkvv2MqvarmJKr2dbGK6zJfPtDk7vfQWUKF+wkUFYUWT+FZKOQ99Fl6FCw8=
x-amz-request-id: X4AR0T0ZFD37TB81
last-modified: Fri, 30 May 2025 15:51:22 GMT
etag: "e034fe6c89f9be2d6d39201a7d5f8290"
x-amz-server-side-encryption: AES256
server: AmazonS3
content-encoding: gzip
via: 1.1 varnish, 1.1 varnish
content-type: text/plain; charset=utf-8
accept-ranges: bytes
age: 0
date: Wed, 23 Jul 2025 20:27:08 GMT
x-served-by: cache-tyo11963-TYO, cache-bom-vanm7210038-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1753302428.159071,VS0,VE326
vary: Accept-Encoding
content-length: 981
From: "fxn (Xavier Noria) via ruby-core"
Date: 2025-05-30T15:46:55+00:00
Subject: [ruby-core:122343] [Ruby Misc#21385] Namespace: Suggesting a rename
Issue #21385 has been reported by fxn (Xavier Noria).
----------------------------------------
Misc #21385: Namespace: Suggesting a rename
https://bugs.ruby-lang.org/issues/21385
* Author: fxn (Xavier Noria)
* Status: Open
----------------------------------------
I'd like to suggest a rename of namespaces.
The word "namespace" is already taken in Ruby.
We say that classes and modules act as or represent. Constant paths nest them in practice. We say that it is a best practice that gems create their own namespace, etc.
If the feature goes ahead with this name, the above sentences, well-established in the Ruby community, will start to sound confusing, because that meaning of "namespace" stays.
If you look at the index in Matz's book, "namespaces" is indexed in pages 248���250. Title of section 7.5.1 is "Modules as Namespaces".
Besides, I have had a few experiences explaining the proposal to people, and quickly realizing they assume this is something like C++ namespaces or Java packages. Then, I have to undo that mental model and start all over saying "forget that mental model". Those are like our constant paths, only more simple and strict. I think it may also be confusing in this sense (though this could be OK if it wasn't for the previous point.)
To be constructive: Some alternative names that I have thought about are "isolates", "shields", or "cells". ("sandboxes" is close, but may have security connotations you do not want to suggest.)
--
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/