Namespace Risk

I believe there are a few reasons not to use the using namespace for declaring a global namespace in your project.

  1. As it was talked about, it could conflict with other methods with the same name.
  2. Readability from other developers coming in the project as was talked in another lecture. They might be wondering where that method came from.
  3. Having the namespace provided during the method call may also help you recall where the method came from as well.

Privacy & Terms