From: Tanaka Akira Date: 2013-10-08T09:24:23+09:00 Subject: [ruby-core:57719] Re: [ruby-trunk - Feature #8976] file-scope freeze_string directive 2013/10/8 mame (Yusuke Endoh) : > Issue #8976 has been updated by mame (Yusuke Endoh). > > "...".dup looks too verbose to me. > How about using "..." for a mutable string and '...' for an immutable? I considered it at first. But we (at the meeting) abondoned it because we want to use escape sequences, such as \n, in immutable strings. I wrote this concern in [ruby-core:57574] as follows. | Note that the directive effects all static string literals regardless of | single quotes, double quotes, %q-string, %qq-string and here documents. | The reason that the directive is effective not only single quotes is | we want to use escape sequences such as \n in frozen string literals. -- Tanaka Akira