hacker

Sam Vader

@samvader (2)
Intro to C++ 🙂
posted to Tutorials by anthonykung

@manuel08 Isn't the whole point of namespaces to avoid name collision issues? It's best practice to just use std::.

Colored Text C++ LardBoi
posted to Share by LardBoi

Cool, I didn't know this was a thing! I've just been using Curses, which may be more robust but isn't quite as simple. I like it.

Intro to C++ 🙂
posted to Tutorials by anthonykung

@manuel08 I mean, you're right that in projects that aren't large it's fine to use namespace std. In fact, I haven't really run across the issue either, but once you start working on huge projects it's best practice to keep the namespace in there. Obviously you can do whatever you want, but using namespace std basically removes the whole point of namespaces in the first place. here is a good resource that talks more about naming collisions if you're not really sure what I'm talking about. Again- you're right, it doesn't really matter that much.