Issue #11473 has been updated by Andrew Vit.


Hi Rodrigo, I think you need to look into the implications of what you are proposing here. 

For example: In one place you use the string literal "name" e.g. `@db_columns = ["name"]`. In a different context you perform `"name" << ",email"` for a different purpose. If these become unfrozen instances of the same object, then both would be mutated unintentionally. This is why "unfreeze" does not exist.

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

* 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/