String#size versus String#length
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 ?
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?
-1, #size is good enough.
- Status changed from Open to Feedback
size in bytes and
length in chars, not vice versa?
- Status changed from Feedback to Rejected
Rejected. It's too confusing.
Also available in: Atom