Commit efb74460 authored by Russ Cox's avatar Russ Cox

spec: disallow general func, map comparisons

R=golang-dev, gri, r, r
CC=golang-dev
https://golang.org/cl/5369090
parent 558e7fc3
<!-- title The Go Programming Language Specification -->
<!-- subtitle Version of November 9, 2011 -->
<!-- subtitle Version of November 13, 2011 -->
<!--
TODO
......@@ -2966,14 +2966,10 @@ and string values. The result of a comparison is defined as follows:
or if both are <code>nil</code>.
</li>
<li>
Function values are equal if they refer to the same function
or if both are <code>nil</code>.
</li>
<li>
A slice value may only be compared to <code>nil</code>.
A slice, map, or function value may be compared only to <code>nil</code>.
</li>
<li>
Channel and map values are equal if they were created by the same call to <code>make</code>
Channel values are equal if they were created by the same call to <code>make</code>
<a href="#Making_slices_maps_and_channels">Making slices, maps, and channels</a>)
or if both are <code>nil</code>.
</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment