3 ms·
No, because as they note constants can have a default type[0]. For integer constants, that's `int`. Meaning if a literal integer constant is not otherwise typed
by masklinn 6y ago
No, because as they note constants can have a default type[0]. For integer constants, that's `int`. Meaning if a literal integer constant is not otherwise typed, it will default to `int`.
[0] https://blog.golang.org/constants#TOC_5 https://blog.golang.org/constants#TOC_5.