From: Nikolai Weibull Date: 2009-12-02T03:09:01+09:00 Subject: [ruby-core:26979] Re: Caching #to_s for immutables (and a possible future for constant-folding) [with patch v2] On Tue, Dec 1, 2009 at 18:19, Yusuke ENDOH wrote: > How about if #to_s returns, instead of a frozen String itself, a mutable > String that is duplicated from the cached frozen String? Couldn���t one delay duplication until mutation?