On 11/08/2013 02:06 PM, Patrick Walton wrote:
On 11/8/13 2:00 PM, Oren Ben-Kiki wrote:
Also, str != ~[u8] (for good reason). The internal array is hidden
anyway, so pretending to be a smart pointer to it doesn't make a lot of
sense to me. Of course there's a very related issue of whether we see a
vector as a smart pointer or as an object, so even if str was == ~[u8]
it would probably still make sense to view it as an object :-)
No! Read the thread! You need `&str and `&'static str` for performance
as well as `~str`.
This thread is has been running off the rails a bit. Let's all please
take a step back. This subject is one of the most subtle areas of Rust's
type system, is in flux, and a lot of our plans about it are scattered
across various places and passed around through informal conversation.
It's understandable that there's confusion and debate here.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev