3 ms·
Well, with 1000 names you still don't get (many) name collisions so no modules/namespaces is fine. At some point you will find yourself introducing smurf namesp
by cjfd 7y ago
Well, with 1000 names you still don't get (many) name collisions so no modules/namespaces is fine. At some point you will find yourself introducing smurf namespacing and then I would consider modules/namespaces the better solution.
- enriquto 7y agoIf you think about it, smurf namespacing is much simpler thus more elegant than a "real" namespace system.
- cjfd 7y agoIn one sense, yes, but in another no. The main problem is that one can get real long names.
- enriquto 7y agoDepending on your philosophy, that may be a feature to you. I tend to like this effect, because it forces the programmer to avoid building deeply nested structures, which is too easy to do when you abuse modules/namespaces.