Descriptiongo spec: remove predeclared types 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 complx is renamed to complex.
Patch Set 1 #Patch Set 2 : code review 3423041: go spec: remove predeclared types float, complex #Patch Set 3 : code review 3423041: go spec: remove predeclared types float, complex #Patch Set 4 : code review 3423041: go spec: remove predeclared types float, complex #Patch Set 5 : code review 3423041: go spec: remove predeclared types float, complex in fav... #Patch Set 6 : code review 3423041: go spec: remove predeclared types float, complex in fav... #Patch Set 7 : code review 3423041: go spec: remove predeclared types float, complex in fav... #Patch Set 8 : code review 3423041: go spec: remove predeclared types float, complex in fav... #MessagesTotal messages: 9
|