this post was submitted on 20 Jun 2021
2 points (100.0% liked)
C & C++
909 readers
1 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Correct. While using the namespace saves some time when writing (and some space when printing), it may lead to excess time used debugging later when a name clash happens.
The last point might not be a concern for small "toy programs" used for educational purposes. It is still bad style and should be avoided, especially for toy programs used for educational purposes, though.