The usage of quotes in Go's
import statement strikes me as unnecessary. Typical Go import statements look like:
import "foo/bar" import other_name "foo/bar" import ( "foo/bar" x "foo/baz/bar" )
According to this Quora post, it's for unusual paths containing weird characters.
As far as I can tell:
- C and C++
#includecan have weird paths
- Java is rather strict
- You can work around in Python
It strikes me as an unusual concession to make - how often does one see
includes using paths with spaces or other weird characters? What was the original reason behind requiring quoted paths? Is it documented anywhere?