Would it be useful to look at what other languages are doing? For instance, slices in Go are appendable, so perhaps it would be worth looking at code bases written in Go to see how they deal with slices, or how often they append to slices returned from standard library routines.
-- Ziad On Thu, Apr 3, 2014 at 9:24 AM, Daniel Micay <[email protected]> wrote: > On 03/04/14 07:39 AM, Niko Matsakis wrote: > > On Wed, Apr 02, 2014 at 09:21:56PM -0400, Daniel Micay wrote: > >> ...A distinct `~[T]` and `Vec<T>` will make the language more > >> painful to use... > > > > This is precisely the matter of debate, isn't it? I personally see two > > sides to this, which is why I was suggesting that maybe we should wait > > until we can gain a bit more experience before making a final decision > > here. > > I don't think there's much doubt that it will add conversions between > the two to Rust code, requiring more code to get stuff done. It won't > improve either safety or performance to be using it in the library API > boundaries. It may aid in writing correct code by catching programmer > errors, but there has yet to be someone arguing that this is the case > with compelling examples. > > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev > >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
