On Wednesday, 16 October 2013, Chris Morgan wrote: > > I would love this to be the case. It's the biggest problem I had with Go's > error handling: that it's far too easy to just ignore a return value > accidentally. (Truth to tell, the problem is far worse in Go because for > some reason they decided you could take not all of the return values, e.g. > for a func returning (T, err), `t = f()` will silently discard the err; > this has been a decision that has baffled me > It baffles me too, so it's good that Go doesn't actually let you do this :P. You have to either ignore all return values, or explicitly ignore any you don't want using _. You might be thinking of the comma-ok notation for certain built-in expressions...
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
