summaryrefslogtreecommitdiff
path: root/doc/install.html
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2014-10-27 16:31:15 -0700
committerRobert Griesemer <gri@golang.org>2014-10-27 16:31:15 -0700
commit9041655bd3fd1274135ba6bb10f536f2490b4cc2 (patch)
tree5f65c8b7687e8f9f1b841964d49a22bc082dfd0e /doc/install.html
parent9a471d2e0e99beab38ff812e1c41512f8a184a9f (diff)
downloadgo-9041655bd3fd1274135ba6bb10f536f2490b4cc2.tar.gz
spec: permit parentheses around builtin function names
Not a language change. This is simply documenting the status quo which permits builtin function names to be parenthesized in calls; e.g., both len(s) and (((len)))(s) are accepted by all compilers and go/types. Changed the grammar by merging the details of BuiltinCall with ordinary Calls. Also renamed the Call production to Arguments which more clearly identifies that part of the grammar and also matches better with its counterpart on the declaration side (Parameters). The fact that the first argument can be a type (for builtins) or cannot be a type (for regular function calls) is expressed in the prose, no need to make the grammar more complicated. Fixes issue 9001. LGTM=iant, r, rsc R=r, rsc, iant, ken, dave CC=golang-codereviews https://codereview.appspot.com/160570043
Diffstat (limited to 'doc/install.html')
0 files changed, 0 insertions, 0 deletions