From: billk@... Date: 2015-08-21T19:29:30+00:00 Subject: [ruby-core:70529] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3 Issue #11473 has been updated by B Kelly. Yusuke Endoh wrote: > Objection, unless a bailout is provided. > > `""` as a StringBuilder is acutally useful. `"".dup` is too tiring. Wow. Thanks for mentioning string building. It occurs to me I build strings like this somewhat regularly: sql = %{SELECT #{sec_id}, pt.path, st.doc_count } sql << %{FROM #{stats_tablename} AS st } sql << %{JOIN #{path_tablename} AS pt ON (st.path_id = pt.id) } So this will break in 3.0 ? ---------------------------------------- Feature #11473: Immutable String literal in Ruby 3 https://bugs.ruby-lang.org/issues/11473#change-53932 * 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/