The encoding / glob. code in .NET works well , the strings use of code-points is poor choice and both C# and Java suffer heavily for it when doing IO.
Ropes / chords/ chains etc belong at a higher level not the lowest level type. Ben On Fri, May 2, 2014 at 8:03 AM, John Downey <jdow...@gmail.com> wrote: > I have actually always been a fan of how .NET did this. The System.String > type is opinionated in how it is stored internally and does not allow > anyone to change that (unlike Ruby). The conversion from String to byte[] > is done using explicit conversion methods like: > > - Encoding.UTF8.GetBytes(String) > - Encoding.UTF8.GetString(byte[]) > - Encoding.UTF32.GetBytes(String) > - Encoding.UTF32.GetString(byte[]) > - and so on > > That way if you end up with a bunch of bytes, you know exactly what those > bytes represent. > > >
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev