* Igor Bukanov: > So the Go style is to call a function, check if the was an error, > update the error object (or create a new wrapping the old one) with > extra information relevant to the current call stack frame and > propagate the updated error object to the caller.
It's more common to simply return the object. Due to some obscure feature of Go's type system, error values have to be interfaces and cannot be struct types, so I have not seen anyone trying to updating an existing error. Wrapping might happen, but there is no general chaining mechanism like there is in Java. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
