Issue #9650 has been updated by Marc-Andre Lafortune.


It would probably cause a lot of breakage.

More importantly, why would it be an improvement? What's wrong with using `String#bytesize` in the rare case where you actually want the byte length?

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

* Author: Sbastien 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 ?



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