Re:Clever code is probably the worst code you could write
by tialaramex on Tuesday May 21, 2024 @07:22PM
(#40435428)
Because of bad design decisions, a whole pile of unrelated stuff lives in the std namespace, and the disambiguation probably isn't what you wanted, so this can silently cause surprises.
Re:Clever code is probably the worst code you could write
by devnullbrain on Tuesday May 21, 2024 @07:19PM
(#40435389)
It gives you readability. It's not what I'm used to, so it feels like reading French to me. Generally, if I see something without a namespace, it has a local scope.
It's a matter of preference, but I'd still risk ambiguity and name collision, especially when you go beyond std:: (like boost stuff).