3 ms·
There is no global namespace in Go. The fact that you don't know this trivial thing means you nothing about Go and only spread FUD.
by 4ad 15y ago
There is no global namespace in Go. The fact that you don't know this trivial thing means you nothing about Go and only spread FUD.
- pjmlp 15y agoDon't put words in my mouth please. Each package has a global namespace, so each const has to be unique at the package level to avoid namespace collisions. With proper enumerations, only the enumeration needs to be unique, while the enumeration elements would be scoped to the enumeration level, as most (not all) languages do.
- dsymonds 15y agoYou keep using that word, "global". I do not think it means what you think it means.