Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
efb74460
Commit
efb74460
authored
Nov 14, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: disallow general func, map comparisons
R=golang-dev, gri, r, r CC=golang-dev
https://golang.org/cl/5369090
parent
558e7fc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
go_spec.html
doc/go_spec.html
+3
-7
No files found.
doc/go_spec.html
View file @
efb74460
<!-- 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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment