Project

General

Profile

Actions

Feature #11782

closed

String#+@ and String#-@

Added by ko1 (Koichi Sasada) about 9 years ago. Updated about 3 years ago.

Status:
Closed
Target version:
-
[ruby-core:71898]

Description

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).
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0