Why can I type alias functions and use them without casting?
Turns out, this is a misunderstanding that I had about how Go dealt with types, which can be resolved by reading the relevant part of the spec: http://golang.org/ref/spec#Type_identity The relevant distinction that I was unaware of was that of named and unnamed types. Named types are types with a name, such as int, int64, float, … Read more