• Rob Pike's avatar
    gobs: error cleanup part 1. · f593b37f
    Rob Pike authored
    Remove err from the encoderState and decoderState types, so we're
    not always copying to and from various copies of the error, and then
    use panic/recover to eliminate lots of error checking.
    
    another pass might take a crack at the same thing for the compilation phase.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/2660042
    f593b37f
codec_test.go 27.9 KB