]> Cypherpunks repositories - gostls13.git/commit
go spec: Base comparison compatibility on assignment compatibility.
authorRobert Griesemer <gri@golang.org>
Thu, 3 Jun 2010 23:55:50 +0000 (16:55 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 3 Jun 2010 23:55:50 +0000 (16:55 -0700)
commit1d282a8eb2569d480273b695b36cdf2dc60a3403
treee89eab255b643efba552ff807290cc7b0b851d85
parent28852c15312fefac1cd962681686f7f635041873
go spec: Base comparison compatibility on assignment compatibility.

Specifically:
- Simplified definition of comparison compatibility and folded into
  section on comparison operators since it's only used there.

This is a small language change/cleanup. As a consequence:
- An interface value may now be compared against a non-interface value.
- Channels with opposite directions cannot be compared directly anymore
  (per discussion with rsc).

R=rsc, r, iant, ken2
CC=golang-dev
https://golang.org/cl/1462041
doc/go_spec.html