uber / h3

Hexagonal hierarchical geospatial indexing system
https://h3geo.org
Apache License 2.0
4.92k stars 468 forks source link

Convention for short variable name for `LatLng` type? #483

Open ajfriend opened 3 years ago

ajfriend commented 3 years ago

As mentioned in this issue, do we want to come up with and use a good, standard short variable name for LatLng variables?

dfellis commented 3 years ago

Lots of potential shorthand names come up in my mind: c for coordinate, m for mercator, p for point, l for location. Fully generic names like a or x for "I don't care". ;)

Being consistent across the codebase is secondary to being clear within a function in the codebase, though. Maybe for the benefit of people reading the source code we don't have a shorthand at all and just LatLng latlng = ... instead?