Project

General

Profile

Actions

Bug #15241

closed

net/pop fix to use mutable strings was too eager

Added by eventualbuddha (Brian Donovan) over 5 years ago. Updated over 4 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:89509]

Description

See [[https://github.com/ruby/ruby/commit/3993fbb5f6bfdae0bce040988d7e2dd632247cdc#commitcomment-30987842|this thread on Github]]. I believe the changes made in Backport #14416 for 2.5.2 (on both trunk and 2.5.x) over-eagerly applied mutability to literal strings. In particular, the strings returned by inspect have no real need to be mutable as far as I can tell.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0