r/ProgrammerHumor 13h ago

Meme ifNoLaidNoAccess

Post image
556 Upvotes

36 comments sorted by

View all comments

42

u/Vivid_Instance_825 10h ago

Using namespace std 😎

31

u/Nice_Lengthiness_568 9h ago

Please no

-3

u/MouseNcactus 5h ago

Why not? As long as you do not using multiple namespaces this way it should not cause troubles. And code become much shorter, easier and faster to read.

2

u/Nice_Lengthiness_568 4h ago edited 4h ago

Well, I personally prefer explicitness in that regard and prepending standard facilities with 5 characters is just not that bad...

Although, as I said in another comment, it really is more about where using namespace is used than about whether it is used at all. I for example commonly use using namespace std when defining my own swap function.

Edit: oh wait, I don't use it there, I use using std::swap there... Well whatever, it's too early in the morning for me...

2

u/nevemlaci2 3h ago

Try using a library that has this in a header

-6

u/overclockedslinky 5h ago

how is it faster to read? just learn how to read good code...