mirror of
https://github.com/golang/go
synced 2024-11-25 03:37:58 -07:00
doc/go1: tweaks to address rsc's comments
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5706054
This commit is contained in:
parent
1b1039a1c1
commit
9e7e6d9ea4
@ -348,7 +348,7 @@ was unspecified. This change codifies the unpredictability.
|
|||||||
<h3 id="multiple_assignment">Multiple assignment</h3>
|
<h3 id="multiple_assignment">Multiple assignment</h3>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The language specification guarantees that in assignments
|
The language specification has long guaranteed that in assignments
|
||||||
the right-hand-side expressions are all evaluated before any left-hand-side expressions are assigned.
|
the right-hand-side expressions are all evaluated before any left-hand-side expressions are assigned.
|
||||||
To guarantee predictable behavior,
|
To guarantee predictable behavior,
|
||||||
Go 1 refines the specification further.
|
Go 1 refines the specification further.
|
||||||
@ -520,8 +520,7 @@ using element-wise comparison.
|
|||||||
<p>
|
<p>
|
||||||
Second, Go 1 removes the definition of equality for function values,
|
Second, Go 1 removes the definition of equality for function values,
|
||||||
except for comparison with <code>nil</code>.
|
except for comparison with <code>nil</code>.
|
||||||
Finally, Map equality is gone too, also except for comparison with <code>nil</code>,
|
Finally, map equality is gone too, also except for comparison with <code>nil</code>.
|
||||||
although it may return one day in a more intuitive form.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
@ -293,7 +293,7 @@ was unspecified. This change codifies the unpredictability.
|
|||||||
<h3 id="multiple_assignment">Multiple assignment</h3>
|
<h3 id="multiple_assignment">Multiple assignment</h3>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The language specification guarantees that in assignments
|
The language specification has long guaranteed that in assignments
|
||||||
the right-hand-side expressions are all evaluated before any left-hand-side expressions are assigned.
|
the right-hand-side expressions are all evaluated before any left-hand-side expressions are assigned.
|
||||||
To guarantee predictable behavior,
|
To guarantee predictable behavior,
|
||||||
Go 1 refines the specification further.
|
Go 1 refines the specification further.
|
||||||
@ -444,8 +444,7 @@ using element-wise comparison.
|
|||||||
<p>
|
<p>
|
||||||
Second, Go 1 removes the definition of equality for function values,
|
Second, Go 1 removes the definition of equality for function values,
|
||||||
except for comparison with <code>nil</code>.
|
except for comparison with <code>nil</code>.
|
||||||
Finally, Map equality is gone too, also except for comparison with <code>nil</code>,
|
Finally, map equality is gone too, also except for comparison with <code>nil</code>.
|
||||||
although it may return one day in a more intuitive form.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user