From: sawadatsuyoshi@... Date: 2015-08-24T08:20:32+00:00 Subject: [ruby-core:70563] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3 Issue #11473 has been updated by Tsuyoshi Sawada. Tsuyoshi Sawada wrote: > As for a "finer-grained range than a whole file" directive, it reminds me of the `using` method. Their scope look similar to me. Can we have built-in modules named as `FrozenString` and `UnfrozenString`, which give special interpretations when used with `using`? > > using FrozenString > > # string literals are interpreted as frozen > > using UnfrozenString > > # string literals are not interpreted as frozen And when the whole file need to be directed in one or the other way, we can just put one of these lines at the beginning of the file. ---------------------------------------- Feature #11473: Immutable String literal in Ruby 3 https://bugs.ruby-lang.org/issues/11473#change-53973 * 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/