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

Issue 4761044: code review 4761044: exp/template: allow declaration of variables only insid... (Closed)

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

Description

exp/template: allow declaration of variables only inside control structures. In simple pipelines the declaration has no scope. Also document the scope.

Patch Set 1 #

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -11 lines) Patch
M src/pkg/exp/template/doc.go View 1 2 3 2 chunks +11 lines, -5 lines 0 comments Download
M src/pkg/exp/template/parse.go View 4 chunks +7 lines, -4 lines 0 comments Download
M src/pkg/exp/template/parse_test.go View 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 6
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-07-17 01:28:09 UTC) #1
r
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2011-07-17 01:30:57 UTC) #2
r
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2011-07-17 01:33:59 UTC) #3
dsymonds
LGTM http://codereview.appspot.com/4761044/diff/7001/src/pkg/exp/template/doc.go File src/pkg/exp/template/doc.go (right): http://codereview.appspot.com/4761044/diff/7001/src/pkg/exp/template/doc.go#newcode156 src/pkg/exp/template/doc.go:156: A pipeline inside an "if", "with", or "range" ...
13 years, 9 months ago (2011-07-17 01:53:56 UTC) #4
r
*** Submitted as http://code.google.com/p/go/source/detail?r=bf35e2f208cb *** exp/template: allow declaration of variables only inside control structures. In ...
13 years, 9 months ago (2011-07-17 02:32:09 UTC) #5
rsc
13 years, 9 months ago (2011-07-18 14:02:14 UTC) #6
LGTM
Sign in to reply to this message.

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