From: mame@... Date: 2015-08-25T03:35:32+00:00 Subject: [ruby-core:70583] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3 Issue #11473 has been updated by Yusuke Endoh. Please consider the difference of the development style: hobby development and enterprise development. I'm on hobby development. I mainly use Ruby to write a short program, including one-liner. I don't use a framework like Rails. In this style, `.dup`, command-line argument (including setting RUBYOPT), and magic comment are all big pain. On the other hand, in general the setting is not a pain for the enterprise development like Rails. Each user needs to think nothing if the framework does the setting instead of users. Considering this use case, magic comment and command-line argument may not a reasonable mean even for enterprise style. I guess it would be good if the "immutable by default" setting should be done via method call (e.g., `require "app.rb", string_immutable: true`) or global setting (e.g., `RubyVM::StringImmutable = true`), and so on. So, please keep "mutable by default", and reconsider if the setting means (magic comment and command-line argument) are really suitable for the enterprise development style. -- Yusuke Endoh ---------------------------------------- Feature #11473: Immutable String literal in Ruby 3 https://bugs.ruby-lang.org/issues/11473#change-53987 * 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/