RFC-15: Comment 1#
Comment authors#
1 German BioImaging e.V.
Conflicts of interest (optional)#
None
Breaking changes to unify case are a necessity#
The benefits of consistent casing for developer experience have been discussed at length elsewhere.
It may not matter so much from the user perspective, on the basis that the increasingly complex OME-Zarr implementation details will almost always be abstracted away behind some other interface.
We believe that a key benefit of consistent casing is of public perception of the project. OME-Zarr is the product of a huge amount of work, with robust development practices and broad community engagement. Mixed casing is a “smell” which belies this and may tarnish newcomers’ initial impression of the format and the community. Case consistency is not difficult to get right, and we should not risk newcomers dismissing the format out of hand based on superficial flaws.
Requiring implementations to support multiple cases adds significant friction as support for aliasing varies wildly across languages and serialisation libraries.
While it’s trivial in rust’s serde, the popular python packages pydantic, cattrs, and msgspec all have significant usability problems around aliases.
Discussing the actual merits of snake_case and camelCase is unproductive#
While recently-popular programming languages seem to have trended towards snake_case (with the exception of Go), there is enough variety throughout software development history to suggest that there is no “correct” decision.
Certainly, there has been enough discussion across wider communities that I do not expect us to solve the debate here.
We could debate forever. The only efficient path is to not bother debating at all and refer the decision elsewhere.
snake_case is the “null” decision for consistency#
OME-Zarr metadata will always appear inside Zarr metadata (at time of writing)
OME-Zarr implementations will generally wrap or work in concert with Zarr implementations
Therefore, true consistency for OME-Zarr requires consistency with Zarr
Zarr is internally consistent
So we should use Zarr’s convention (
snake_case)
This decision does not require us to care about snake_case or camelCase (which we may not agree on);
it only requires us to care about consistency (which we should).
Recommendation#
Accept