[#70257] [Ruby trunk - Feature #11420] [Open] Introduce ID key table into MRI — ko1@...

Issue #11420 has been reported by Koichi Sasada.

11 messages 2015/08/06

[ruby-core:70562] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3

From: sawadatsuyoshi@...
Date: 2015-08-24 08:18:27 UTC
List: ruby-core #70562
Issue #11473 has been updated by Tsuyoshi Sawada.


As for a "finer-grained range than a whole file" directive, it reminds me of the `using` method. Their scope look similar to me. Can we have built-in modules named as `FrozenString` and `UnfrozenString`, which give special interpretations when used with `using`?

    using FrozenString

      # string literals are interpreted as frozen

    using UnfrozenString

     # string literals are not interpreted as frozen

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

* Author: Koichi Sasada
* Status: Assigned
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
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/

In This Thread

Prev Next