[#70257] [Ruby trunk - Feature #11420] [Open] Introduce ID key table into MRI — ko1@...

Issue #11420 has been reported by Koichi Sasada.

11 messages 2015/08/06

[ruby-core:70565] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3

From: mame@...
Date: 2015-08-24 11:56:18 UTC
List: ruby-core #70565
Issue #11473 has been updated by Yusuke Endoh.


> "immutable by default" is a way to solve the ambivalent with matz's preference.

So, you mean:

* because the magic comment is not accepted as-is,
* we suppose "immutable by default" as a future goal, and
* the magic comment can be now accepted as a migration path.

The logic seems weird to me.  What is the true goal?  If "immutable by default" is the true goal, we should discuss the advantage/disadvantage of itself.  The magic comment is irrelevant.


> I think the major factor why matz accept "immutable by default" is not this effect.

The advantages are:

+ improves the performance
+ prevents users from shooting themselves in the foot (this effect is limited)

The disadvantages are:

- breaks the compatibility significantly
- damages the usability

IMO, the long-term design preference of Ruby should be: usability > compatibility > performance.

-- 
Yusuke Endoh <mame@ruby-lang.org>

----------------------------------------
Feature #11473: Immutable String literal in Ruby 3
https://bugs.ruby-lang.org/issues/11473#change-53974

* Author: Koichi Sasada
* Status: Assigned
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
Matz said "All String literals are immutable (frozen) on Ruby 3".

This ticket is place holder to discuss about that.




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

In This Thread

Prev Next