Ruby steps toward frozen string literals
The next version of the Ruby programming language, Ruby 3.4.0, has been released in preview, bringing changes for string literals and class updates.
Unveiled May 16, the Ruby 3.4.0 preview is downloadable from ruby-lang.org. With this update, string literals in files without a frozen_string_literal
comment now behave as if they were frozen. If mutated, a deprecation warning is emitted. The change marks a first step toward making frozen string literals the default in Ruby. Frozen or immutable strings offer both performance and safety advantages.