
Issue #20350 has been updated by byroot (Jean Boussier). We wrote the implementation with @etienne this morning: https://github.com/ruby/ruby/pull/12065 No idea if we wish to include this for 3.4 or not though. People are already complaining quite a bit about various incompatibilities (`Hash#inspect`, `Backtrace::Location#to_s`, etc), so we might want to wait January. ---------------------------------------- Feature #20350: Return chilled string from Symbol#to_s https://bugs.ruby-lang.org/issues/20350#change-110581 * Author: Dan0042 (Daniel DeLorme) * Status: Open ---------------------------------------- During Ruby 2.7 development there was an attempt to return a frozen string from Symbol#to_s (#16150#note-22) This had to be rolled back due to incompatibility, but now we have chilled strings (#20205) Symbol#to_s can safely return a chilled string, giving developers time to fix warnings before switching to a frozen string. ---Files-------------------------------- Screenshot 2024-11-06 at 14.00.47.png (118 KB) -- https://bugs.ruby-lang.org/