Bonus: Box<T>, Own<T>, Heap<T> would play nicer with allocators (in terms of syntax) than ~T.
On Thu, Apr 24, 2014 at 11:52 AM, Bill Myers <[email protected]> wrote: > > Something like this will work, yes. It'll probably look more like: > > > > Box::new(*x) > > > > This will be described in some of the RFCs that are coming up soon. > > Awesome! > > We should really get rid of the ~T syntax in favor of Foo<T> (where Foo = > Box, Own, Heap, etc.), since it is deceptively simple for something that > should in fact be rarely used. > > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev > -- Clark. Key ID : 0x78099922 Fingerprint: B292 493C 51AE F3AB D016 DD04 E5E3 C36F 5534 F907
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
