[ruby-core:69541] [Ruby trunk - Feature #9650] [Rejected] String#size versus String#length

From: matz@...
Date: 2015-06-12 08:38:18 UTC
List: ruby-core #69541
Issue #9650 has been updated by Yukihiro Matsumoto.

Status changed from Feedback to Rejected

Rejected. It's too confusing.

Matz.


----------------------------------------
Feature #9650: String#size versus String#length
https://bugs.ruby-lang.org/issues/9650#change-52872

* Author: S辿bastien Durand
* Status: Rejected
* Priority: Low
* Assignee: 
----------------------------------------
Hi guys !

A quick idea for the next major version :

String#size => bytes length
String#length => chars length 

Could this be a good move or too much BC break ?



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next