From: daniel@...42.com
Date: 2019-09-18T12:47:05+00:00
Subject: [ruby-core:94957] [Ruby master Feature#11473] Immutable String	literal in Ruby 3

Issue #11473 has been updated by Dan0042 (Daniel DeLorme).


> And I have a path forward that would easily address any breakage: we add a `mutable-string-literal` pragma.

I don't understand, why a new pragma? Is there a reason why the existing `frozen-string-literal: false` is not good enough?

Side note to this discussion: I've made proposal #16153 for a way to gradually phase-in frozen strings. IMHO that would really help with a transition to `frozen-string-literal: true` by default.

----------------------------------------
Feature #11473: Immutable String literal in Ruby 3
https://bugs.ruby-lang.org/issues/11473#change-81574

* Author: ko1 (Koichi Sasada)
* Status: Closed
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: 
----------------------------------------
Matz said "All String literals are immutable (frozen) on Ruby 3".

This ticket is place holder to discuss about that.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>