]> Cypherpunks repositories - gostls13.git/commit
text/template: clean up function values
authorRob Pike <r@golang.org>
Sat, 3 Mar 2012 12:14:20 +0000 (23:14 +1100)
committerRob Pike <r@golang.org>
Sat, 3 Mar 2012 12:14:20 +0000 (23:14 +1100)
commitf1d3ff1660f227154d05297654dc58c052711c34
treea654fbc6488b9ac714779912124d2d986ba57df4
parent604f3751104e655f76e5368a3a4177d58fe1509c
text/template: clean up function values
The recent addition of automatic function invocation generated
some troublesome ambiguities. Restore the previous behavior
and compensate by providing a "call" builtin to make it easy to
do what the automatic invocation did, but in a clear and explicit
manner.

Fixes #3140.

At least for now.

R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/5720065
src/pkg/text/template/doc.go
src/pkg/text/template/exec.go
src/pkg/text/template/exec_test.go
src/pkg/text/template/funcs.go