From: ko1@... Date: 2015-12-07T15:19:06+00:00 Subject: [ruby-core:71908] [Ruby trunk - Feature #11782] String#+@ and String#-@ Issue #11782 has been updated by Koichi Sasada. The purpose of this proposal is to encourage frozen string literals and provide better way than `"foo".dup`. So that `String#-@` can be redundancy. ---------------------------------------- Feature #11782: String#+@ and String#-@ https://bugs.ruby-lang.org/issues/11782#change-55315 * Author: Koichi Sasada * Status: Assigned * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- Matz said > In fact, my best choice is introducing `String#+` that returns a mutable copy of a string. [ruby-core:71879] [Ruby trunk - Bug #11759] So that this is a ticket for that. I'll commit it ASAP to check this methods before 2.3. Specification: * `+'foo'` returns modifiable string. * `-'foo'` returns frozen string (because wasters will freeze below 0 degree in Celsius). -- https://bugs.ruby-lang.org/