[#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:70563] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3

From: sawadatsuyoshi@...
Date: 2015-08-24 08:20:32 UTC
List: ruby-core #70563
Issue #11473 has been updated by Tsuyoshi Sawada.


Tsuyoshi Sawada wrote:
> 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

And when the whole file need to be directed in one or the other way, we can just put one of these lines at the beginning of the file.


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

* 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