mirror of
https://github.com/golang/go
synced 2024-11-25 02:07:58 -07:00
- renamed SimpleVarDecl -> ShortVarDecl, in sync with terminology used in prose
- added a few TODOs R=r DELTA=4 (2 added, 0 deleted, 2 changed) OCL=31751 CL=31756
This commit is contained in:
parent
a93c5c8550
commit
e1b8cb8cf0
@ -14,6 +14,8 @@ Todo's:
|
|||||||
a T struct { a b int }.
|
a T struct { a b int }.
|
||||||
[ ] should probably write something about evaluation order of statements even
|
[ ] should probably write something about evaluation order of statements even
|
||||||
though obvious
|
though obvious
|
||||||
|
[ ] specify iteration direction for range clause
|
||||||
|
[ ] review language on implicit dereferencing
|
||||||
[ ] document T.m mechanism to obtain a function from a method
|
[ ] document T.m mechanism to obtain a function from a method
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -1545,7 +1547,7 @@ var f = 3.1415 // f has type float
|
|||||||
A <i>short variable declaration</i> uses the syntax
|
A <i>short variable declaration</i> uses the syntax
|
||||||
|
|
||||||
<pre class="ebnf">
|
<pre class="ebnf">
|
||||||
SimpleVarDecl = IdentifierList ":=" ExpressionList .
|
ShortVarDecl = IdentifierList ":=" ExpressionList .
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
and is shorthand for the declaration syntax
|
and is shorthand for the declaration syntax
|
||||||
@ -3008,7 +3010,7 @@ Statement =
|
|||||||
FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
|
FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
|
||||||
DeferStmt .
|
DeferStmt .
|
||||||
|
|
||||||
SimpleStmt = ExpressionStmt | IncDecStmt | Assignment | SimpleVarDecl .
|
SimpleStmt = ExpressionStmt | IncDecStmt | Assignment | ShortVarDecl .
|
||||||
|
|
||||||
StatementList = Statement { Separator Statement } .
|
StatementList = Statement { Separator Statement } .
|
||||||
Separator = [ ";" ] .
|
Separator = [ ";" ] .
|
||||||
|
Loading…
Reference in New Issue
Block a user