]> Cypherpunks repositories - gostls13.git/commit
big: usable zero Rat values without need for explicit initialization
authorRobert Griesemer <gri@golang.org>
Fri, 21 Oct 2011 21:11:36 +0000 (14:11 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 21 Oct 2011 21:11:36 +0000 (14:11 -0700)
commit696ced50feea2e9711636deeb5a5835cfeb998e9
tree66e74550b2aaca7ba539a7e47c324a55f04639a1
parentd481d7c854f53f0f8283b1f726d3b40f86443e09
big: usable zero Rat values without need for explicit initialization

- no explicit API change, but new(big.Rat) now creates a big.Rat value
  of 0 that is immediately usable, in sync. w/ the conventions elsewhere
- various cleanups along the way

R=r
CC=golang-dev
https://golang.org/cl/5301056
src/pkg/big/int.go
src/pkg/big/nat.go
src/pkg/big/nat_test.go
src/pkg/big/rat.go
src/pkg/big/rat_test.go