On 11/18/2011 01:34 PM, Graydon Hoare wrote:
Sorry to blather on like this, but ... the point of "lightweight tasks" in this language is that they're lightweight, and get used early and often. If everyone's reaction to "use a task" is "oh bother, those are far too heavy", I think we've made a mistake somewhere.
The reason std::io returns error values now is largely because it's still not practical to use tasks as they are intended. I did first try to just isolate in a task the IO failures I needed to handle, but the language is not expressive enough yet to do this in a general way (really needs unique closures).
Error handling is super important and so far we aren't providing any guidance on how to do it the Rust way (since rustc mostly is ok with the entire process failing).
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
