]> Cypherpunks repositories - gostls13.git/commit
spec: introduce alias declarations and type definitions
authorRobert Griesemer <gri@golang.org>
Thu, 2 Feb 2017 23:43:56 +0000 (15:43 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 6 Feb 2017 23:51:47 +0000 (23:51 +0000)
commit56c9b51b937cca7d3db517add96bd9517bbffb80
tree6adcbdef69c8b05a0c17a73cb6e510695378334f
parent3b68a647696ebfb61d199155f5f1faa5740e5c55
spec: introduce alias declarations and type definitions

To avoid confusion caused by the term "named type" (which now just
means a type with a name, but formerly meant a type declared with
a non-alias type declaration), a type declaration now comes in two
forms: alias declarations and type definitions. Both declare a type
name, but type definitions also define new types.

Replace the use of "named type" with "defined type" elsewhere in
the spec.

For #18130.

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