3 ms·
No no, I with you this, I hate that Go allows this as well. If you have a type system, then force the user to specify exactly what type they want something to
by mrweasel 3y ago
No no, I with you this, I hate that Go allows this as well.
If you have a type system, then force the user to specify exactly what type they want something to be. It's completely reasonable in my mind to write var x float32 = 10, the compiler can then deal with adding the .0 if it wants.