]> Cypherpunks repositories - gostls13.git/commit
spec: state which predeclared types are defined or alias types (clarification)
authorgriesemer <gri@golang.org>
Tue, 19 Sep 2017 12:35:15 +0000 (14:35 +0200)
committerRobert Griesemer <gri@golang.org>
Tue, 19 Sep 2017 14:33:25 +0000 (14:33 +0000)
commit4a2391e7c965f7ed4d1ec189087293c1f6bae43c
tree144d13dfbf673c208f2c6a7a284efd44f65e021b
parent3dd96e9d82c59755117fd259a836a55098507001
spec: state which predeclared types are defined or alias types (clarification)

When we introduced the distinction between "defined" and "alias" types
we retained the notion of a "named" type (any type with a name). The
predeclared types (which all have names) simply remained named types.

This CL clarifies the spec by stating excplicitly which predeclared
types are defined types (or at least "act" like defined types), and
which ones are alias types.

Fixes #21785.

Change-Id: Ia8ae133509eb5d738e6757b3442c9992355e3535
Reviewed-on: https://go-review.googlesource.com/64591
Reviewed-by: Russ Cox <rsc@golang.org>
doc/go_spec.html