← Back to context

Comment by WhitneyLand

7 days 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.

> 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.

I’ve lived in both and I prefer ::.

  • I 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).