go/doc
Robert Griesemer ccc713c7ca 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 #9001.

LGTM=iant, r, rsc
R=r, rsc, iant, ken, dave
CC=golang-codereviews
https://golang.org/cl/160570043
2014-10-27 16:31:15 -07:00
..
articles build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
codewalk doc: fix typo in sharemem codewalk 2014-05-21 14:34:20 -07:00
devel doc: document go1.3.3 2014-10-01 08:30:51 +10:00
gopher doc/gopher: add biplane.jpg 2014-09-25 14:10:56 -07:00
play doc: remove godocs.js and playground.js from core repo 2013-08-01 15:09:18 +10:00
progs doc/progs: don't try building cgo tests if CGO_ENABLED=0 2013-10-11 08:55:13 -07:00
asm.html all: copy cmd/ld/textflag.h into pkg/GOOS_GOARCH 2014-08-12 17:04:45 -07:00
cmd.html doc/cmd.html: close a tag. 2014-08-26 05:26:48 -07:00
code.html doc: drop scheme from links that are known to support HTTPS 2014-07-25 10:28:39 +10:00
contrib.html doc: drop scheme from links that are known to support HTTPS 2014-07-25 10:28:39 +10:00
contribute.html build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
debugging_with_gdb.html build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
docs.html doc: drop scheme from links that are known to support HTTPS 2014-07-25 10:28:39 +10:00
effective_go.html build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
gccgo_contribute.html build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
gccgo_install.html gccgo_install.html: the 4.9 release series supports Go 1.2 2014-10-22 20:41:13 -07:00
go-logo-black.png doc: pngcrush and remove old, unused images 2012-03-08 14:18:28 +11:00
go-logo-blue.png doc: pngcrush and remove old, unused images 2012-03-08 14:18:28 +11:00
go-logo-white.png doc: pngcrush and remove old, unused images 2012-03-08 14:18:28 +11:00
go1.1.html doc: drop scheme from links that are known to support HTTPS 2014-07-25 10:28:39 +10:00
go1.2.html doc: drop scheme from links that are known to support HTTPS 2014-07-25 10:28:39 +10:00
go1.3.html doc: document new ParseMultipartForm behavior 2014-08-07 15:42:06 +10:00
go1.4.html doc/go1.4.html: first pieces of release notes 2014-10-27 14:23:24 -07:00
go1.html doc: link directly to https://golang.org/dl/ 2014-09-12 09:15:58 +10:00
go1compat.html unsafe: document that unsafe programs are not protected 2014-10-24 09:37:25 -07:00
go_faq.html doc/go_faq.html: fix a couple of nits 2014-10-26 11:27:55 -07:00
go_mem.html doc: fix happens-before rules for buffered channels 2014-06-05 21:08:28 +04:00
go_spec.html spec: permit parentheses around builtin function names 2014-10-27 16:31:15 -07:00
help.html doc: drop scheme from links that are known to support HTTPS 2014-07-25 10:28:39 +10:00
ie.css
install-source.html doc: drop scheme from links that are known to support HTTPS 2014-07-25 10:28:39 +10:00
install.html doc: link directly to https://golang.org/dl/ 2014-09-12 09:15:58 +10:00
logo-153x55.png doc: pngcrush and remove old, unused images 2012-03-08 14:18:28 +11:00
root.html doc: drop scheme from links that are known to support HTTPS 2014-07-25 10:28:39 +10:00
share.png godoc: change link styles, add 'pop out' button 2012-03-13 11:00:11 +11:00
sieve.gif
tos.html doc: drop scheme from links that are known to support HTTPS 2014-07-25 10:28:39 +10:00