3 ms·
> I'm not happy about change of [T] to Vec<T> either. [T] wasn't a thing in Rust. ~[T] hasn't gone and won't go away either. See this email from acrichton: htt
by tomjakubowski 13y ago
> I'm not happy about change of [T] to Vec<T> either.
[T] wasn't a thing in Rust. ~[T] hasn't gone and won't go away either. See this email from acrichton: https://mail.mozilla.org/pipermail/rust-dev/2014-April/009352.html https://mail.mozilla.org/pipermail/rust-dev/2014-April/00935...
- dbaupp 13y agoThat email is somewhat outdated. ~[T] is certainly disappearing with that syntax, becoming Box<[T]>, andthere has been much back and forth about whether this Box<[T]> type actually offers anything over Vec<T>, or if it's just a "cute" consequence of the type system. (The borrowed slices &[T] and &mut [T] are certainly here to stay.)