On 5/30/12 5:35 AM, Joe Groff wrote: > On Tue, May 29, 2012 at 7:57 AM, Niko Matsakis <[email protected]> wrote: >> In general it seems there are three classes of errors >> >> - globally unrecoverable (just call `fail`) >> - locally unrecoverable (return a `result<X,Y>` type) >> - recoverable (pass in handler or error reporter) > > If you have closures with nonlocal returns, callback handlers could > work in both the locally unrecoverable and recoverable cases.
It is my understanding that we really do not want closures with nonlocal returns, as they cause the exact same kind of implementation issues as exceptions, in terms of both performance, semantics and typing (at least if they are not "almost-local" returns). Cheers, David -- David Rajchenbach-Teller, PhD Performance Team, Mozilla
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
