Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
9e7e6d9e
Commit
9e7e6d9e
authored
Feb 29, 2012
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/go1: tweaks to address rsc's comments
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/5706054
parent
1b1039a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
doc/go1.html
doc/go1.html
+3
-4
doc/go1.tmpl
doc/go1.tmpl
+3
-4
No files found.
doc/go1.html
View file @
9e7e6d9e
...
...
@@ -348,7 +348,7 @@ was unspecified. This change codifies the unpredictability.
<h3
id=
"multiple_assignment"
>
Multiple assignment
</h3>
<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.
To guarantee predictable behavior,
Go 1 refines the specification further.
...
...
@@ -520,8 +520,7 @@ using element-wise comparison.
<p>
Second, Go 1 removes the definition of equality for function values,
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.
Finally, map equality is gone too, also except for comparison with
<code>
nil
</code>
.
</p>
<p>
...
...
@@ -1125,7 +1124,7 @@ as <a href="/pkg/encoding/gob/"><code>encoding/gob</code></a>.
The old
<code>
Parser
</code>
type is renamed
<a
href=
"/pkg/encoding/xml/#Decoder"
><code>
Decoder
</code></a>
and has a new
<a
href=
"/pkg/encoding/xml/#Decoder.Decode"
><code>
Decode
</code></a>
method. An
<a
href=
"/pkg/encoding/xml/#Encoder"
><code>
Encoder
</code></a>
type was also
introduced.
<a
href=
"/pkg/encoding/xml/#Encoder"
><code>
Encoder
</code></a>
type was also introduced.
</p>
<p>
...
...
doc/go1.tmpl
View file @
9e7e6d9e
...
...
@@ -293,7 +293,7 @@ was unspecified. This change codifies the unpredictability.
<
h3
id
=
"multiple_assignment"
>
Multiple
assignment
</
h3
>
<
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
.
To
guarantee
predictable
behavior
,
Go
1
refines
the
specification
further
.
...
...
@@ -444,8 +444,7 @@ using element-wise comparison.
<
p
>
Second
,
Go
1
removes
the
definition
of
equality
for
function
values
,
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
.
Finally
,
map
equality
is
gone
too
,
also
except
for
comparison
with
<
code
>
nil
</
code
>.
</
p
>
<
p
>
...
...
@@ -1029,7 +1028,7 @@ as <a href="/pkg/encoding/gob/"><code>encoding/gob</code></a>.
The old <code>Parser</code> type is renamed
<a href="/pkg/encoding/xml/#Decoder"><code>Decoder</code></a> and has a new
<a href="/pkg/encoding/xml/#Decoder.Decode"><code>Decode</code></a> method. An
<a href="/pkg/encoding/xml/#Encoder"><code>Encoder</code></a> type was also
introduced.
<a href="/pkg/encoding/xml/#Encoder"><code>Encoder</code></a> type was also introduced.
</p>
<p>
...
...
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