[ruby-core:64055] [ruby-trunk - Feature #9650] String#size versus String#length

From: boris@...
Date: 2014-07-26 15:54:23 UTC
List: ruby-core #64055
Issue #9650 has been updated by Boris Stitnicky.


-1, #size is good enough.

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

* Author: S辿bastien Durand
* Status: Open
* Priority: Low
* Assignee: 
* Category: 
* Target version: Next Major
----------------------------------------
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