On 11/30/13 7:43 PM, Corey Richardson wrote:
Maybe `do` can just change from procs to closures. I can't really say
how often I've actually wanted a proc. Task bodies are a far minority
compared to other uses of do, from the backlash, and I don't find
`spawn(proc() { ... })` that unappealing.

I really don't see "do" for stack closures as something that makes sense in current Rust. It made sense back when we used it for loops and didn't use RAII (as Ruby does), but the experiment of using blocks in place of RAII for stuff like "with_c_str" or "unkillable" has failed: it leads to too much rightward drift.

Patrick

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to