News for hackers. Stuff that matters.
Re:Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers by majewsky on Monday September 05, 2016 @04:31AM (#12428914)
> Go is extremely pedantic about a number of things like unused library imports, trailing commas, etc. which have absolutely no bearing on the actual compiled code

Trailing commas, agreed. But unused library imports have the (probably unintended) side effect that their `func init()` will execute. Which is also why there is an idiomatic way to import a module without giving it an identifier, just to have this side effect.

Re:Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers by brobinson on Monday September 05, 2016 @05:20AM (#12429088)
Good point. And there can actually be more than one init() function per package!
Re:Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers by majewsky on Monday September 05, 2016 @09:56AM (#12430325)
Yes, but I guess that they're just concatenated at compile-time.