5 ms·
It's just more C++ ish to write something::listen rather than something_listen. Namespaces are easy too. Why not?
by w8rbt 9y ago
It's just more C++ ish to write something::listen rather than something_listen. Namespaces are easy too. Why not?
- matt42 9y agoMy fear with this approach that it allows to write "using namespace moustique". This would cause: - name conflicts on the listen function. - Code harder to read since it's not obvious anymore that listen comes for the moustique library. I often use namespaces but I do think that they can have a bad impact on the usability of the api, especially when you have too many deeply nested namespaces, and have to use plenty on using namespace ... to fix this.