4 ms·
Sure, but in practice I believe most developers would find it intuitive to just type . everywhere. It feels more lightweight and consistent, and collisions are
by WhitneyLand 2y ago
Sure, but in practice I believe most developers would find it intuitive to just type . everywhere.
It feels more lightweight and consistent, and collisions aren’t super common once you adopt some conventions.
It’s a tradeoff for sure, but this preference comes from having lived in both worlds.
- PartiallyTyped 2y agoN=1; I find :: a lot more obvious.
- steveklabnik 2y agoI’ve lived in both and I prefer ::.
- gpderetta 2y agoI prefer a world where there is no distinction between modules (or namespaces) and object, so '.' it is. (and I'm almost exclusively a C++ programmer).
- lelanthran 2y ago> Sure, but in practice I believe most developers would find it intuitive to just type . everywhere. Yeah, but in practice I try not to produce write-only code. Code is for reading more than for writing, hence make it easier to read. If it becomes easier to write as a side-effect, then so be it.