On 15/04/14 04:28 PM, Ziad Hatahet wrote: > Would it be worth introducing an own!() macro for this purpose? I came > across this suggestion on the reddit > thread: http://www.reddit.com/r/rust/comments/2340zb/rustdev_removing_foo/ > > -- > Ziad
I think using the term "own" for that would greatly increase confusion. An unboxed value is just as owned as one placed in an owned box. I don't really think we need any sugar beyond `to_owned()` for allocating memory dynamically and copying over a string.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
