News for hackers. Stuff that matters.
Re:Nil in Go is typed in theory and sort of untyped in practice by masklinn on Wednesday March 31, 2021 @01:29PM (#26650219)
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.

There are no comments on this comment yet.