Ruby 3.0 Interpolated Strings Are No Longer Frozen

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 https://rubyonrails.ba/single/ruby-3-0-interpolated-strings-are-no-longer-frozen

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles