Consider making all fields private with accessors #1382
Labels
next major: breaking change
this is a change that we should wait to bundle into the next major version
type: cleanup
An internal cleanup or hygiene concern.
Our generated messages look like so:
Maybe the
latitude
andlongitude
fields should not be public, and the generated code should be:For trivial fields like this the is not much difference and probably the change is not that useful. This may be more useful for non-trivial fields like maps, where we may want to change the representation some day, or for repeated fields or for
wkt::StringValue
where we may want to change the representation fromString
to a tuple or struct.We could also exploit this to make hand-crafted structs in veneers behave more like the generated types, and in that case we really may have very different representations -- or representations that change more often -- of the fields.
The text was updated successfully, but these errors were encountered: