Y
Hacker News
new
|
ask
|
show
|
jobs
by
earhart
1882 days ago
Go supports untyped constants --
https://golang.org/ref/spec#Constants
. It's useful for defining a named constant, and then using the name to initialize variable values of any compatible type.