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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper

Nezir Zahirovic

Freelance software developer Ruby On Rails (4 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles