Open KrisThielemans opened 8 months ago
The idea was to follow (parts of) the Google C++ style guide. But we could also do snake_case everywhere like the standard library.
@KrisThielemans, would you support adopting snake_case everywhere for C++ like the standard library?
My personal preference is to keep the names as per the yardl file. Why are we renaming this at all? (are there tools that can parse JSON and enforce naming conventions?)
If we have to rename, then it has to be consistent within language (which I suppose we are now), and I'd try to make it consistent between languages (which we are now). snake_case is fine for me. (In STIR/SIRF, we use CamelCase for classes, and snake_case for methods/variables, but any convention is fine of course)
There is some renaming of members going on in the generated code, but it is not consistent
leads to
tof_bin_edges
member in both C++ and Python, butNumberOfTOFBins()
(note capitalN
) in C++ whilenumber_of_tof_bins()
in PythonPersonally I'd try to avoid any renaming, but maybe that is difficult when covering multiple languages. We could enforce naming in the yardl model?