Ruby 3.0 Interpolated Strings Are No Longer Frozen
23-Oct-2020 2264
In Ruby, frozen_string_literal: truemakes all string literals frozen by default and it helps in reducing needless memory allocations by not creating a new allocation each time a string is redefined.In Ruby 2.7.1 and earlier versions, interpolated strings were also considered to be frozen when frozen_string_literal: trueis used.
Ruby 3.0 Interpolated Strings Are No Longer Frozen #ruby #rubydeveloper #rubyonrails #Interpolated #Strings #Longer #Frozen https://rubyonrails.ba/link/ruby-3-0-interpolated-strings-are-no-longer-frozen