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

Issue 4826052: code review 4826052: exp/template: simplify the helper functions (Closed)

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

Description

exp/template: simplify the helper functions - create a pair of "Must" functions, one for templates, one for sets - regularize the return values of the parsers so they can be wrapped by Must - delete all the old Must functions and methods.

Patch Set 1 #

Total comments: 7

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -195 lines) Patch
M src/pkg/exp/template/exec_test.go View 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/exp/template/helper.go View 1 2 8 chunks +72 lines, -163 lines 0 comments Download
M src/pkg/exp/template/parse.go View 1 chunk +4 lines, -4 lines 0 comments Download
M src/pkg/exp/template/parse_test.go View 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/exp/template/set.go View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M src/pkg/exp/template/set_test.go View 1 2 7 chunks +17 lines, -20 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, 7 months ago (2011-07-28 18:16:15 UTC) #1
gri
LGTM Some questions/suggestions. http://codereview.appspot.com/4826052/diff/1/src/pkg/exp/template/helper.go File src/pkg/exp/template/helper.go (right): http://codereview.appspot.com/4826052/diff/1/src/pkg/exp/template/helper.go#newcode39 src/pkg/exp/template/helper.go:39: //checked against those in the set. ...
13 years, 7 months ago (2011-07-28 18:58:08 UTC) #2
r
Hello golang-dev@googlegroups.com, gri@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-07-28 20:34:55 UTC) #3
r2
i like your suggestion
13 years, 7 months ago (2011-07-28 20:34:59 UTC) #4
gri
LGTM
13 years, 7 months ago (2011-07-28 21:49:22 UTC) #5
r
13 years, 7 months ago (2011-07-28 23:19:21 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=16df6858b745 ***

exp/template: simplify the helper functions
- create a pair of "Must" functions, one for templates, one for sets
- regularize the return values of the parsers so they can be wrapped by Must
- delete all the old Must functions and methods.

R=golang-dev, gri, r
CC=golang-dev
http://codereview.appspot.com/4826052
Sign in to reply to this message.

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