From: Tanaka Akira Date: 2013-10-10T00:54:13+09:00 Subject: [ruby-core:57783] Re: [ruby-trunk - Feature #8976] file-scope freeze_string directive 2013/10/10 headius (Charles Nutter) : > Issue #8976 has been updated by headius (Charles Nutter). > > See also #8992 that might address all issues by simply making the compiler and #freeze methods smarter. > > * Compiler would see through "literal".freeze and do what "literal"f" does now. > * String#freeze could be adapted to use the fstring cache internally, so all frozen strings would be interned (in the Java sense). > * No new backward-incompatible syntax. > * Easy expansion to other literal syntaxes like arrays and hashes. #8992 doesn't address the problem follows. | * Need to modify for each string literal. | This is cumbersome. -- Tanaka Akira