[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

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

From: ruby-core@...
Date: 2014-03-17 17:49:36 UTC
List: ruby-core #61556
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: 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 ?



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

In This Thread

Prev Next