On Wednesday, 19 November 2014 at 17:58:01 UTC, Andrei
Alexandrescu wrote:
On 11/19/14 8:54 AM, bearophile wrote:

This is nice:

fn split_at_mut(&mut self, mid: uint) -> (&mut [T], &mut [T]);

Bye,
bearophile

Why did this redditor say it's a horrific hack? http://www.reddit.com/r/programming/comments/2mqyd3/rust_lifetimes_and_collections/cm6yj7b

Andrei

Too much time spent commenting, not enough time spent coding ?
That is a useful construct and that is a nice example of how a
nicely encapsulated unsafe construct (with a safe interface) can
lead to interesting new constructs.

Reply via email to