On 12-03-23 06:59 PM, Patrick Walton wrote: > But if literals promoted to slices you could take advantage of that to > achieve the same effect:
Via the type annotation on x? If so, that's true, but it means that if you're lazy and write the second case (and we know lazy is the normal case for programmers) you get two arrays, the expensive and not-pointing-at-the-same-array version. I think we don't want that to be the default. -Graydon _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
