• Rob Pike's avatar
    text/template: clean up function values · f1d3ff16
    Rob Pike authored
    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
    f1d3ff16
exec.go 21.7 KB