Project

General

Profile

Actions

Feature #2617

closed

Array#to_s behavior different on 1.8.7 and 1.9.1

Feature #2617: Array#to_s behavior different on 1.8.7 and 1.9.1

Added by robertgleeson (Robert Gleeson) almost 16 years ago. Updated over 14 years ago.

Status:
Rejected
Target version:
-
[ruby-core:27628]

Description

=begin

1.9.1 patch level 378

irb(main):005:0> [1,2,3].to_s
=> "[1, 2, 3]"

1.8.7 patch level 248

irb(main):001:0> [1,2,3].to_s
=> "123"

I personally prefer the behavior that 1.8.7 has, but it'd be nice if 18 and 19 behaved the same way :-)
=end

Updated by matz (Yukihiro Matsumoto) almost 16 years ago Actions #1

  • Status changed from Open to Rejected
  • Assignee set to matz (Yukihiro Matsumoto)

=begin
It's intended. 1.8 should be left unchanged for backward compatibility.
=end

Actions

Also available in: PDF Atom