]> Cypherpunks repositories - gostls13.git/commit
spec: move all sections describing type properties into one place
authorRobert Griesemer <gri@golang.org>
Thu, 10 Feb 2022 01:36:51 +0000 (17:36 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 10 Feb 2022 21:40:49 +0000 (21:40 +0000)
commit99b61be9f573ca46f4a4160e536abcb62180638a
tree55543c88d8baa415d8bed8b2f392bbea376fe8b7
parent3b8c716e0fb897f867cabd2aeeb77b2b8ccd2241
spec: move all sections describing type properties into one place

This change only shuffles sections for better organization; there
are no other changes except title and link adjustments.

Until now, the sections on underlying types and method sets were
immediately following the introduction of types. As it becomes
necessary to introduce the notion of a core type more centrally,
the natural place is immediately following the section on underlying
types. All together, these sections, immediately after the introduction
of types, would distract from purpose of the section on types, which
is to introduce the various types that Go offers.

The more natural place for the definition of underlying, core, and
specific types is the section on properties of types and values.

To accomplish this, the section on the structure of interfaces is
split into a section on core types and one on specific types, and
the various sections are reorganized appropriately.

The new organization of the section on types now simply introduces
all Go types as follows:

- boolean types
- numeric types
- string types
- array types
- slice types
- struct types
- pointer types
- function types
- interface types
- map types
- channel types
- type parameters

The new organization of the section on properties of types and values
is as follows:

- underlying types
- core types
- specific types
- type identity
- assignability
- representability
- method sets

Change-Id: I59e4d47571da9d4c89d47d777f5353fb1c5843e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/384623
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
doc/go_spec.html