On 12-09-05 1:10 PM, Gareth Smith wrote:

The advantage of such an arrangement is that str would be fixed size and
~str/@str/&str would be consistent with other types.

Is this actually a reasonable system?

That's what they used to be. People passed them by-value too much and we made too many copies, and balked at the double-indirection implied by passing around an &str or such. That also doesn't handle the fixed-size, constant-memory and substring-slice use-cases.

The current scheme is a very delicate balance between a large number of pressures; I think it's about the best we're going to get.

-Graydon

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

Reply via email to