]> Cypherpunks.ru repositories - gostls13.git/commit
image: deprecate ZP and ZR
authorNigel Tao <nigeltao@golang.org>
Sat, 6 Apr 2019 23:33:36 +0000 (09:33 +1000)
committerNigel Tao <nigeltao@golang.org>
Sun, 7 Apr 2019 03:44:17 +0000 (03:44 +0000)
commit1c00deeaf96743362a103957266f92e47ff90bc6
tree9a356d16cbf935462a9664594f7374f6c747c749
parentad6c691542e2d842c90e2f7870021d16ffa71878
image: deprecate ZP and ZR

They were added a very long time ago, as a convenience before Go had
struct literals. Today, it is better to use the zero-valued literal. For
example, the compiler cannot prove that ZP or ZR have not been modified.

Change-Id: I7469f1c751e91bf76fe1eab07b5772eccb5d6405
Reviewed-on: https://go-review.googlesource.com/c/go/+/171097
Reviewed-by: Nigel Tao <nigeltao@golang.org>
src/image/geom.go