On Thu, May 1, 2014 at 6:53 AM, Malthe Borch <[email protected]> wrote:

> A string would be essentially a rope where each leaf specifies an
> encoding, e.g. UTF-8 or ISO8859-1 (ideally expressed as one or two
> bytes).
>
> That is, a string may be comprised of segments of different encodings.


Oh god no! Please no. This is what Ruby does and it's a complete nightmare.
This creates an entire new class of bug when operations are performed on
strings with incompatible encodings. It's an entire class of bug that
simply doesn't exist if you just pick a standard encoding and stick to it.

-- 
Tony Arcieri
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to