3 ms·
> Yes, it can save some typing, but programing is never hard because of typing, programing is hard because its hard to understand what is going on. I agree tha
by Calavar 4y ago
> Yes, it can save some typing, but programing is never hard because of typing, programing is hard because its hard to understand what is going on.
I agree that optimizing number of keystrokes is a bad goal, but in my opinion that isn't the selling point of namespaces. The benefit is better readability. Code written with namespaces lets your eye focus the semantic name of the method, not extra character noise that was added as a form of manual name-mangling.
This is highly opinionated, of course, because there is a tradeoff with the ability to uniquely identify a method at a glance, as you mentioned. Which camp you fall into is likely to depend on what sort of software you write and whether you use an IDE or a text editor.