[#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:70527] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3

From: mame@...
Date: 2015-08-21 17:45:49 UTC
List: ruby-core #70527
Issue #11473 has been updated by Yusuke Endoh.


Jeremy Evans wrote:
> +"" is not backwards compatible, "".dup is, as is String.new.  I'm definitely against +"".

It will be backwards compatible, if we introduce it to Ruby 2.3 or 2.4.  I don't think that Ruby 3.0 will be released before Ruby 2.2 EOL.


> One possible option would be to have "" be a mutable string, and '' be an immutable string.

I really like your idea.

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

* Author: Koichi Sasada
* Status: Open
* 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