Issue #14138 has been updated by matz (Yukihiro Matsumoto).

Status changed from Open to Closed

We are discussing removing those weird global variables (for Ruby3).
Even if we cannot remove them, we'd like to provide the alternative way to access the info (e.g. `Regexp.last_match` for `$~`). If any of those variables will survive, I'd love to provide the aliases for those variables. Wait for Ruby3.

I'd close the issue for now.

Matz.


----------------------------------------
Feature #14138: Define English.rb aliases by default and eliminate the library
https://bugs.ruby-lang.org/issues/14138#change-68964

* Author: headius (Charles Nutter)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
There are many good reasons to simply define all the English.rb global aliases at boot:

* JRuby has done it for years with zero reported bugs.
* Rubinius has done it for years with zero reported bugs.
* Globals are in general discouraged, so the likelihood of collision with a user library is very low.
* The globals that remain are better indicated by using the long name rather than the Perl-esque short names.
* One less library to maintain.

The only argument to not do this seems to be the collision concern, but that has not affected hundreds of users of JRuby and Rubinius over the past decade. I think we're safe.

This would be ideal for 2.5, if it's not too late, since this is the big "gemifying" release. Eliminating English.rb would fit into that well.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>