From: Robert Griesemer Date: Thu, 20 Jan 2011 04:07:21 +0000 (-0500) Subject: go spec: remove float, complex in favor of float64 and complex128 X-Git-Tag: weekly.2011-01-20~5 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b94c0d2a774f6d35c3c4abf25af405dbe76825ee;p=gostls13.git 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 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 71ef526f2e..f2e55a02c4 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,5 +1,5 @@ - +