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

From: tom.enebo@...
Date: 2015-08-21 15:57:50 UTC
List: ruby-core #70523
Issue #11473 has been updated by Thomas Enebo.


I see no reason why 2.3 cannot also have --error-frozen-strings.  As an opt-in I think it will give people more of a chance to make sure their code works.

A second possible idea would be to add a lint to possibly flag interesting idioms like String#<< where immutable strings could run into problems.  Since not all Strings will be immutable I am not sure if this would be helpful or not?

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

* 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