Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2833)

Issue 4428057: code review 4428057: spec: narrow syntax for expression and select statements (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by gri
Modified:
13 years ago
Reviewers:
CC:
rsc, r, iant, golang-dev
Visibility:
Public.

Description

spec: narrow syntax for expression and select statements This is not a language change, it simply expresses the accepted cases explicitly in the respective productions.

Patch Set 1 #

Patch Set 2 : diff -r 79deef5a2706 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 79deef5a2706 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 79deef5a2706 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r d93b5329ae9f https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r d93b5329ae9f https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r d93b5329ae9f https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r d93b5329ae9f https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 3cc73320c799 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M doc/go_spec.html View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -10 lines 0 comments Download

Messages

Total messages: 13
gri
Hello rsc, r, iant (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years ago (2011-04-20 23:30:21 UTC) #1
rsc
LGTM But only if go/parser does not implement this rule. I think we should be ...
13 years ago (2011-04-21 12:09:43 UTC) #2
gri
On Thu, Apr 21, 2011 at 5:09 AM, Russ Cox <rsc@golang.org> wrote: > LGTM > ...
13 years ago (2011-04-21 17:31:07 UTC) #3
rsc
> What is your rationale for it? If the grammar has this restriction, > the ...
13 years ago (2011-04-21 19:04:04 UTC) #4
gri
On Thu, Apr 21, 2011 at 12:04 PM, Russ Cox <rsc@golang.org> wrote: >> What is ...
13 years ago (2011-04-22 00:35:51 UTC) #5
gri
Hello rsc, r, iant (cc: golang-dev@googlegroups.com), Please take another look.
13 years ago (2011-04-28 21:54:40 UTC) #6
r
LGTM
13 years ago (2011-04-28 22:19:30 UTC) #7
gri
*** Submitted as http://code.google.com/p/go/source/detail?r=19e540fc7d7d *** spec: narrow syntax for expression and select statements This is ...
13 years ago (2011-04-29 16:49:26 UTC) #8
rsc
This is a language change. package main import "fmt" func main() { c := make(chan ...
13 years ago (2011-04-29 17:38:14 UTC) #9
gri
Maybe it's a language change; but more likely the wording in the spec was not ...
13 years ago (2011-04-29 18:07:04 UTC) #10
rsc
On Fri, Apr 29, 2011 at 14:07, Robert Griesemer <gri@golang.org> wrote: > Maybe it's a ...
13 years ago (2011-04-29 18:08:45 UTC) #11
gri
Wait, though. The CL also implies that the expression statement (<-c) // as opposed to: ...
13 years ago (2011-04-29 18:38:52 UTC) #12
rsc
13 years ago (2011-04-29 18:49:23 UTC) #13
(f()) at top level has the same problem.

Another problem with the new grammar is that
as an expression <-f() means <-(f()) but the new
grammar says that at top level <-f() means (<-f)().

I agree: revert the CL.  You can use hg undo 4428057.

Russ
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b