From b94c0d2a774f6d35c3c4abf25af405dbe76825ee Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 19 Jan 2011 23:07:21 -0500 Subject: [PATCH] go spec: remove float, complex in favor of float64 and complex128 The default float type is not very useful but for the most basic applications. For instance, as it is now, using the math package requires conversions for float variables (the arguments for math functions are usually float64). Typical real applications tend to specify the floating point precision required. This proposal removes the predeclared types float and complex. Variable declarations without type specification but with constant floating point or complex initializer expressions will assume the type float64 or complex128 respectively. The predeclared function cmplx is renamed to complex. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/3423041 --- doc/go_spec.html | 129 +++++++++++++++++++++++------------------------ 1 file changed, 63 insertions(+), 66 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 71ef526f2ec..f2e55a02c40 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,5 +1,5 @@ - +