by dilap · 10y ago · 0 comments
func now() time.Time { return time.Now() }
If I see this: var now = time.Time
My first instinct is, "hmmm, some kind of variable?" And then I have to remember, "oh yeah, it's just a variable that holds a function."Obviously not a big deal either way.
(I think this further shows how type aliases would not be adding much possibility for confusion compared to what already exists in the language.)