3 ms·
C++ doesn't have a lot of namespacing below 'std', so if you go around using everything you need, you end up with a lot of short, possibly conflicting names in
by twic 4y ago
C++ doesn't have a lot of namespacing below 'std', so if you go around using everything you need, you end up with a lot of short, possibly conflicting names in scope.
Java avoids this somewhat because functions are always in a class, so there is a little bit of extra namespacing, even if you've imported the class.
- winrid 4y agoYou can still import fully qualified static method on a class: import someclass.doThing; Or maybe that's what you meant by somewhat :)
- gautamdivgi 4y agoDon’t the boost libraries use a bunch of namespacing? And I think you need boost to be decently useful in c++.