]> Cypherpunks repositories - gostls13.git/commit
spec: consistently use "defined type" and "type name" (cleanup)
authorRobert Griesemer <gri@golang.org>
Tue, 23 Jan 2018 00:20:01 +0000 (16:20 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 23 Jan 2018 17:39:18 +0000 (17:39 +0000)
commit9b49ac0366d3e3948adf5a30bfcff52049e1799a
tree4c6e85ea34ef26449eb8ac0ea25451eab6e5d2ae
parentcafb36bf11c0ec30a5650a6f1200b0f046fc67a7
spec: consistently use "defined type" and "type name" (cleanup)

When we introduced the notion of alias type declarations, we renamed
"named type" to "defined type" to avoid confusion with types denoted
by aliases and thus are also types with names, or "named types".

Some of the old uses of "named types" remained; this change removes
them.

Now the spec consistently uses the terms:

- "defined type"  for a type declared via a type definition
- "type name"     for any name denoting an (alias or defined) type
- "alias"         for a type name declared in an alias declaration

New prose is encouraged to avoid the term "named type" to counter-
act further confusion.

Fixes #23474.

Change-Id: I5fb59f1208baf958da79cf51ed3eb1411cd18e03
Reviewed-on: https://go-review.googlesource.com/89115
Reviewed-by: Rob Pike <r@golang.org>
doc/go_spec.html