http://codereview.appspot.com/864042/diff/6001/7001 File src/pkg/tabwriter/tabwriter.go (right): http://codereview.appspot.com/864042/diff/6001/7001#newcode460 src/pkg/tabwriter/tabwriter.go:460: if e, ok := e.(os.Error); ok { won't this ...
http://codereview.appspot.com/864042/diff/6001/7001 File src/pkg/tabwriter/tabwriter.go (right): http://codereview.appspot.com/864042/diff/6001/7001#newcode460 src/pkg/tabwriter/tabwriter.go:460: if e, ok := e.(os.Error); ok { On 2010/03/31 ...
http://codereview.appspot.com/864042/diff/6001/7001
File src/pkg/tabwriter/tabwriter.go (right):
http://codereview.appspot.com/864042/diff/6001/7001#newcode460
src/pkg/tabwriter/tabwriter.go:460: if e, ok := e.(os.Error); ok {
On 2010/03/31 21:36:36, r wrote:
> won't this always succeed?
No, there are some explicit panic calls with non-os.Error arguments, but in
general there may be genuine other (runtime) panics due to bugs. One could just
let the conversion fail, but this seems a bit cleaner to me.
*** Submitted as http://code.google.com/p/go/source/detail?r=e0d39840763f *** tabwriter: use panic/recover to handle errors R=rsc, r CC=golang-dev http://codereview.appspot.com/864042
Issue 864042: code review 864042: tabwriter: use panic/recover to handle errors
(Closed)
Created 15 years ago by gri
Modified 15 years ago
Reviewers:
Base URL:
Comments: 3