[#70843] Re: [ruby-cvs:58952] hsbt:r51801 (trunk): * lib/rubygems: Update to RubyGems HEAD(fe61e4c112). — Eric Wong <normalperson@...>
hsbt@ruby-lang.org wrote:
3 messages
2015/09/17
[ruby-core:70809] Re: [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3
From:
Nobuyoshi Nakada <nobu@...>
Date:
2015-09-15 04:52:12 UTC
List:
ruby-core #70809
On 2015/08/22 7:30, akr@fsij.org wrote:
> Jeremy Evans wrote:
>>
>> One possible option would be to have "" be a mutable string, and '' be an immutable string. It doesn't make sense to have "" strings be immutable if they contain interpolation, since they can't be deduped, and '' strings can't contain interpolation.
>
> It makes that frozen string literal can not have escape sequences such as "\n".
Maybe:
'frozen literal with'"\n"'a newline.'
Anyway, about this idea, I'm curious what happens when mixing two quotations by literal concatenation.