Why isn’t short variable declaration allowed at package level in Go?

According to Ian Lance Taylor in this thread shortly after the public announcement:

At the top level, every declaration begins with a keyword. This simplifies parsing.

Leave a Comment