Cabbage Risk

Well, actually, this is namespace risk too, but it pays to be different sometimes.

The risk of using “using namespace” is that a given method may be defined in different ways in different namespaces, and that, if you do not define the namespace explicitly when using the method, it may not be clear to some reading your code which variant you are using. There could be a lot of code between where the namespace is specified, in the “using” statement, and the place that the method is used.

Privacy & Terms