1
0
mirror of https://github.com/golang/go synced 2024-09-30 15:28:33 -06:00
go/doc
Robert Griesemer 8fbfdad281 spec: require 16 bit minimum exponent in constants rather than 32
A 16bit binary exponent permits a constant range covering roughly the range
from 7e-9865 to 7e9863 which is more than enough for any practical and
hypothetical constant arithmetic.

Furthermore, until recently cmd/compile could not handle very large exponents
correctly anyway; i.e., the chance that any real programs (but for tests that
explore corner cases) are affected are close to zero.

Finally, restricting the minimum supported range significantly reduces the
implementation complexity in an area that hardly matters in reality for new
or alternative spec-compliant implementations that don't or cannot rely on
pre-existing arbitratry precision arithmetic packages that support a 32bit
exponent range.

This is technically a language change but for the reasons mentioned above
this is unlikely to affect any real programs, and certainly not programs
compiled with the gc or gccgo compilers as they currently support up to
32bit exponents.

Fixes #13572.

Change-Id: I970f919c57fc82c0175844364cf48ea335f17d39
Reviewed-on: https://go-review.googlesource.com/17711
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2016-10-18 22:36:50 +00:00
..
articles cmd/yacc: remove go tool yacc 2016-08-18 16:15:23 +00:00
codewalk all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
devel doc: document go1.7.2 2016-10-17 20:40:22 +00:00
gopher website: recreate 16px and 32px favicon 2016-08-25 15:43:32 +00:00
play doc/play: update URL for concurrent pi 2016-01-06 20:23:21 +00:00
progs all: remove executable bit from several files 2015-09-04 02:59:49 +00:00
asm.html doc: add s390x information to asm.html 2016-07-26 00:18:42 +00:00
cmd.html doc: fix broken link to the vet command documentation 2016-05-16 21:30:31 +00:00
code.html go/build: add help info for unset $GOPATH 2016-09-10 00:27:43 +00:00
conduct.html doc: Americanise spelling of wilful 2015-12-17 21:32:59 +00:00
contrib.html doc: add 1.7 to golang.org/project 2016-08-16 01:04:17 +00:00
contribute.html doc: add notes on good commit messages 2016-05-24 19:23:18 +00:00
debugging_with_gdb.html doc: fix source link in gdb docs 2016-01-06 21:58:19 +00:00
docs.html doc: update go tour installation instructions 2016-08-31 18:54:04 +00:00
effective_go.html doc: change variable name in Effective Go 2016-09-16 01:10:51 +00:00
gccgo_contribute.html doc: fix stale gofrontend/gccgo contribution link 2016-09-01 18:38:38 +00:00
gccgo_install.html all: link to https instead of http 2015-07-11 14:36:33 +00:00
go1.1.html all: fix misprints in comments 2015-06-11 14:18:57 +00:00
go1.2.html
go1.3.html
go1.4.html
go1.5.html doc: mention that go install removes binaries built by go build 2015-09-08 18:46:07 +00:00
go1.6.html doc: GCC 6 will have the Go 1.6.1 user libraries 2016-04-14 20:00:33 +00:00
go1.7.html doc/go1.7.html: fix name of tls.Config.NextProtos 2016-08-16 18:55:09 +00:00
go1.8.txt doc: update go1.8.txt 2016-10-16 10:31:36 +00:00
go1.html
go1compat.html doc: add a clause about embedded methods to go1compat 2015-07-22 01:25:32 +00:00
go_faq.html doc: add some missing HTML tags in the FAQ 2016-09-20 23:01:12 +00:00
go_mem.html
go_spec.html spec: require 16 bit minimum exponent in constants rather than 32 2016-10-18 22:36:50 +00:00
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html doc: revise help page with categories and more links 2016-01-14 03:15:39 +00:00
ie.css
install-source.html doc: document go1.7.2 2016-10-17 20:40:22 +00:00
install.html doc: document minimum OS X version as 10.8 2016-09-12 18:39:55 +00:00
root.html doc: only show Share button when enabled 2015-09-02 05:58:52 +00:00
security.html doc: security fixes are prepared for two most recent stable releases 2016-03-09 03:32:23 +00:00
share.png
tos.html