]> Cypherpunks repositories - gostls13.git/commit
gobs: error cleanup part 1.
authorRob Pike <r@golang.org>
Fri, 22 Oct 2010 22:16:34 +0000 (15:16 -0700)
committerRob Pike <r@golang.org>
Fri, 22 Oct 2010 22:16:34 +0000 (15:16 -0700)
commitf593b37f237f624724c6bbe32124819395fa9d1d
treed4738d13c07288eefe3fc8a5e7093ef2c3406106
parent1dd0319be36ae0b00d14caeb13912c1cc2f13d1f
gobs: error cleanup part 1.
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
src/pkg/gob/Makefile
src/pkg/gob/codec_test.go
src/pkg/gob/decode.go
src/pkg/gob/decoder.go
src/pkg/gob/encode.go
src/pkg/gob/encoder.go
src/pkg/gob/encoder_test.go
src/pkg/gob/error.go [new file with mode: 0644]