> Allowing one closure to take &mut while another takes &const would > create a data race if the two closures are executed in parallel.
Closures executable in parallel would probably have kind bounds forbidding &const: http://smallcultfollowing.com/babysteps/blog/2013/06/11/data-parallelism-in-rust/ explicitly mentions this. BTW, how about keeping it, and calling it "&volatile" instead of "&const", since that's what C uses to name something that can be changed outside the program's control?
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
