1
0
mirror of https://github.com/golang/go synced 2024-11-17 13:04:54 -07:00
go/doc
Robert Griesemer 26d22609c3 spec: distinguish between explicit and implicit conversions (clarification)
The spec used the term "conversion" somewhat indiscriminately for
explicit conversions that appear literally in the source, and implicit
conversions that are implied by the context of an expression.
Be clearer about it by defining the terms.

Also, state that integer to string conversions of the form string(x)
are never implicit. This clarifies situations where implicit conversions
might require an integer to change to a string (but don't and never have
done so). See line 3948.

Fixes #26313.

Change-Id: I8939466df6b5950933ae7c987662ef9f88827fda
Reviewed-on: https://go-review.googlesource.com/c/139099
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-10-08 17:47:49 +00:00
..
articles
codewalk
devel doc: document Go 1.11.1 2018-10-01 20:32:50 +00:00
gopher doc/gopher: add model sheet 2018-07-18 04:00:10 +00:00
play
progs
asm.html
cmd.html
code.html doc/code: drop mentions of GOPATH/pkg directory 2018-08-17 15:52:33 +00:00
conduct.html doc: update Code of Conduct 2018-05-23 20:16:46 +00:00
contrib.html doc: add go1.11 to contrib.html 2018-09-28 09:18:14 +00:00
contribute.html doc: recommend benchstat for performance commits 2018-08-31 03:52:31 +00:00
debugging_with_gdb.html doc: remove "known bug" about global variables in debug_info. 2018-09-28 16:14:03 +00:00
diagnostics.html doc: update more stale pprof links 2018-06-17 21:35:39 +00:00
docs.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
editors.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
effective_go.html
gccgo_contribute.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
gccgo_install.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go1.1.html
go1.2.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go1.3.html
go1.4.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go1.5.html
go1.6.html doc: use HTTPS for clang.llvm.org link in go1.6.html 2018-06-12 15:03:24 +00:00
go1.7.html doc: use HTTPS for man.openbsd.org link in go1.7.html 2018-06-12 15:03:46 +00:00
go1.8.html
go1.9.html
go1.10.html
go1.11.html doc/go1.11, cmd/go: elaborate on new GOFLAGS environment variable 2018-09-14 21:45:02 +00:00
go1.html
go1compat.html
go_faq.html doc/faq: fix link to 2018 ISMM keynote 2018-09-25 18:02:45 +00:00
go_mem.html
go_spec.html spec: distinguish between explicit and implicit conversions (clarification) 2018-10-08 17:47:49 +00:00
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html
ie.css
install-source.html doc: add GOMIPS64 to source installation docs 2018-09-05 10:04:57 +00:00
install.html doc: update the minimum support Windows version 2018-07-11 22:05:38 +00:00
root.html doc: update "Mac OS X", "OS X" to macOS; bump up to 10.10 2018-06-19 21:36:56 +00:00
security.html doc: update the primary security coordinator to filippo@ 2018-08-13 04:48:19 +00:00
share.png
tos.html