On 2014-05-29 07:47, Kevin Ballard wrote:
> 
> The JavaScript version is quite wrong. Isaac points out that NFC vs NFD can 
> change the result,
> although that's really an issue with grapheme clusters vs codepoints.
More interestingly,
> JavaScript's idea of string length is wrong for anything outside of the BMP:
> 

My point wasn't about JavaScript specifically; it's really that using
such an overloaded term (length) for a very specific operation seems
like a bad idea.

[--snip--]
> FWIW, Go uses utf-8 code units as well, and nobody seems to be
confused about that.

"Nobody" seems a bit hyperbolic, but I guess we'll see :).

Anyway, I have no horse in this race, so I'll just leave it at that.

Regards,

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to