[rust-dev] strings, slices and nulls

Erick Tryzelaar erick.tryzelaar at gmail.com
Wed Apr 18 17:07:12 PDT 2012

On Wed, Apr 18, 2012 at 1:54 PM, Brian Anderson <banderson at mozilla.com> wrote:
> As I think about this further, with slices we probably don't need as_buf or
> as_bytes since I think we will be able to create a string slice from a vec
> slice and vice versa.

That would be great. I always forget that str::as_bytes includes a
null, and it inevitably causes some obscure bug that takes me some
time to track down.

More information about the Rust-dev mailing list