1
0
mirror of https://github.com/golang/go synced 2024-11-17 09:54:46 -07:00
go/src
Josh Bleecher Snyder 73cb9a1cb3 all: refer to map elements as elements instead of values
The spec carefully and consistently uses "key" and "element"
as map terminology. The implementation, not so much.

This change attempts to make the implementation consistently
hew to the spec's terminology. Beyond consistency, this has
the advantage of avoid some confusion and naming collisions,
since v and value are very generic and commonly used terms.

I believe that I found all everything, but there are a lot of
non-obvious places for these to hide, and grepping for them is hard.
Hopefully this change changes enough of them that we will start using
elem going forward. Any remaining hidden cases can be removed ad hoc
as they are discovered.

The only externally-facing part of this change is in package reflect,
where there is a minor doc change and a function parameter name change.

Updates #27167

Change-Id: I2f2d78f16c360dc39007b9966d5c2046a29d3701
Reviewed-on: https://go-review.googlesource.com/c/go/+/174523
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-04-30 18:18:12 +00:00
..
archive
bufio
builtin
bytes bytes, internal/bytealg: simplify Equal 2019-04-24 00:56:36 +00:00
cmd all: refer to map elements as elements instead of values 2019-04-30 18:18:12 +00:00
compress
container
context all: s/cancelation/cancellation/ 2019-04-16 20:27:15 +00:00
crypto all: remove a few unused parameters 2019-04-29 13:31:54 +00:00
database/sql database/sql: add NullInt32 2019-04-26 21:54:41 +00:00
debug all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
encoding encoding/csv: add a Fuzz function 2019-04-30 15:03:04 +00:00
errors
expvar expvar: improve Map.addKey for large number of keys 2019-04-16 17:18:01 +00:00
flag
fmt
go all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
hash
html html: add a Fuzz function 2019-04-30 15:48:46 +00:00
image
index/suffixarray
internal bytes, internal/bytealg: simplify Equal 2019-04-24 00:56:36 +00:00
io
log
math math: consolidate assembly stub implementations 2019-04-23 14:50:16 +00:00
mime
net all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
os all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
path
plugin
reflect all: refer to map elements as elements instead of values 2019-04-30 18:18:12 +00:00
regexp
runtime all: refer to map elements as elements instead of values 2019-04-30 18:18:12 +00:00
sort
strconv strconv: Document ParseFloat's special cases 2019-04-29 11:07:31 +00:00
strings
sync sync: update comment 2019-04-19 16:15:36 +00:00
syscall all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
testdata
testing testing: delay flag registration; move to an Init function 2019-04-29 19:54:30 +00:00
text all: remove a few unused parameters 2019-04-29 13:31:54 +00:00
time time: fix misleading error with the leading zero format 2019-04-26 14:01:55 +00:00
unicode all: update to Unicode 11 2019-04-25 20:33:22 +00:00
unsafe
vendor vendor: pull in text@v0.3.2 2019-04-26 19:27:51 +00:00
all.bash
all.bat
all.rc
bootstrap.bash bootstrap.bash: preserve file times when copying 2019-04-27 14:36:00 +00:00
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod vendor: pull in text@v0.3.2 2019-04-26 19:27:51 +00:00
go.sum vendor: pull in text@v0.3.2 2019-04-26 19:27:51 +00:00
iostest.bash
make.bash cmd/go: add env -w and env -u to set and unset default env vars 2019-04-23 00:58:08 +00:00
make.bat cmd/go: add env -w and env -u to set and unset default env vars 2019-04-23 00:58:08 +00:00
Make.dist
make.rc cmd/go: add env -w and env -u to set and unset default env vars 2019-04-23 00:58:08 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc