]> Cypherpunks repositories - gostls13.git/commit
spec: comma-ok expressions return untyped boolean 2nd result
authorRobert Griesemer <gri@golang.org>
Tue, 5 Aug 2014 18:31:32 +0000 (11:31 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 5 Aug 2014 18:31:32 +0000 (11:31 -0700)
commitc0fca138d17910d307b6bd4171c3125640e60591
tree845b6cc1db9732f049cd8860f304c1721fb554a2
parent2ce052fc7af21c68f9b844c470c0ffc33b46f7e8
spec: comma-ok expressions return untyped boolean 2nd result

Technically a language change, this cleanup is a completely
backward compatible change that brings the boolean results
of comma-ok expressions in line with the boolean results of
comparisons: they are now all untyped booleans.

The implementation effort should be minimal (less than a
handfull lines of code, depending how well factored the
implementation of comma-ok expressions is).

Fixes #8189.

LGTM=iant, r, rsc
R=r, rsc, iant, ken
CC=golang-codereviews
https://golang.org/cl/112320045
doc/go_spec.html