From: akr@... Date: 2015-08-24T16:22:57+00:00 Subject: [ruby-core:70573] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3 Issue #11473 has been updated by Akira Tanaka. Yusuke Endoh wrote: > Akira Tanaka wrote: > > This issue tries to solve more than performance. > > As Matsuda-san explained, it solves a social problem. > > Adding `.freeze` blindly is stupid. It should be added only when it is really needed, i.e., only when a string literal in a core loop was proved to be the bottleneck. The core loop is <10% of the code. Do not bring the burden to the innocent 90% of the code. The social problem currently happen seems that not everyone thinks as you. Your cleverness doesn't solve the social problem, unfortunately. I think changing Ruby is easier than educating people. ---------------------------------------- Feature #11473: Immutable String literal in Ruby 3 https://bugs.ruby-lang.org/issues/11473#change-53981 * 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/