3 ms·
> Go fundamental design issue is that it conflates namespaces with urls. No, there is nothing in the design of the Go language that conflates namespaces with U
by mseepgood 10y ago
> Go fundamental design issue is that it conflates namespaces with urls.
No, there is nothing in the design of the Go language that conflates namespaces with URLs. Import paths are just strings. They are interpreted as directories under $GOPATH or ./vendor on the file system by the current Go compiler from golang.org.
One tool called 'go get', which helps to put Go source code files into these directories, does interpret them as URLs. But other implementations of the Go specification like gccgo don't even have the 'go' tool (and thus no 'go get').
Import paths don't even have to be interpreted as directory paths. They could be interpreted e.g. as database queries by other Go spec implementations.
- XorNot 10y agoProbably more importantly, for all the criticism this recieves, the very same people usually reinvent the same system in other languages.