]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typealias] spec: use term 'embedded field' rather than 'anonymous field'
authorRobert Griesemer <gri@golang.org>
Wed, 11 Jan 2017 00:19:14 +0000 (16:19 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 31 Jan 2017 17:12:17 +0000 (17:12 +0000)
commitf8b4123613a2cb0c453726033a03a1968205ccae
tree187ec5ff0db1aca0b6091d52871e5d7a06233fe4
parent9ecc3ee2523f2db87b5b2d79efdd04abda93fb6e
[dev.typealias] spec: use term 'embedded field' rather than 'anonymous field'

First steps towards defining type aliases in the spec.
This is a nomenclature clarification, not a language change.

The spec used all three terms 'embedded type', 'anonymous field',
and 'embedded field'. Users where using the terms inconsistently.

The notion of an 'anonymous' field was always misleading since they
always had a de-facto name. With type aliases that name becomes even
more important because we may have different names for the same type.

Use the term 'embedded field' consistently and remove competing
terminology.

For #18130.

Change-Id: I2083bbc85788cab0b2e2cb1ff58b2f979491f001
Reviewed-on: https://go-review.googlesource.com/35108
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
doc/go_spec.html