-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Counting starts from 0 or 1? #13
Comments
Agreed, count from zero! I wonder how that translates to Fortran JSON parsers. @wadejong any comments? |
@tovrstra Where do you think the best place to put this information is, in a FAQ? |
Mentioning it in the FAQ is certainly helpful but we should probably also have a more formal definition of such rules. I'm not very familiar with JSON Schema. If we eventually write out such a schema, which would facilitate validation, it can also be fixed formally, see e.g. http://json-schema.org/examples.html |
I think starting from 0 makes sense, JSON arrays generally do this. It should go in the FAQ. |
When refering to array elements, e.g. an atom or a center index, we should decide that counting starts either from 0 (please) or 1 (noooo). Some is already mentioned here: Technical_Specifications.md
For example, it is relevant to #12.
The text was updated successfully, but these errors were encountered: