On 11/30/13 7:50 PM, Kevin Ballard wrote:
do spawn proc() {
..
}
That's essentially just as verbose as not having "do".
And yes, I know do originally existed to make spawning nicer, but
that's not really that ugly, and allows for using `do` with stack
closures (which, in code I've seen, has been by far the majority of
use-cases for `do`).
That's because, in the vast majority of cases:
(1) We don't use RAII enough. This should be fixed.
(2) `do` was being used for stuff like `do v.map { ... }`, which I've
always considered something of an abuse. "map" is a higher order
function; it should look like a higher order function and not an iterator.
Patrick
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev