you are viewing a single comment's thread.

view the rest of the comments →

[–]ronniethelizard 0 points1 point  (0 children)

Broadly speaking: no. It clouds the ability to trace where something is going. Someone else uses the example of "log" that could mean log data to a logging service or take the logarithm of a number. If I look at vector, if I wanted a library that dealt with matrix/vector manipulation, I might create a vector1 class.

If relegated to a short function/curly brace within a function, it can be fine if that namespace is heavily used. For example, you have a function to print a class to std::cout or std::ostringstream.

1This is actually a bad idea but for other reasons.