-
Notifications
You must be signed in to change notification settings - Fork 16
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
Using mixedCase #168
Comments
The Fortran community has historically been agnostic if you use mixed case or upper case or lower case, so from this perspective, you can use whatever you prefer. However, instead of each of us using incompatible naming conventions, I would like if we can come together as a community, and agree on a more unified style that we all follow. And then provide tooling (compilers) that can enforce it. Similar to Python's PEP8. I like the Python's approach: https://www.python.org/dev/peps/pep-0008/#function-and-variable-names:
and I suggest we follow the same. See also the discussion at: which lead to: Also https://www.fortran90.org/src/best-practices.html#naming-convention. One can browse current open source Fortran codes here: https://github.com/fortran-lang/stdlib/wiki/List-of-popular-open-source-Fortran-projects. Some codes use |
This is a related to #118 I also like Pythons approach, and my Fortran programming is atm close to pythons PEP8:
Additionally, I follow two advises from the book 'Modern Fortran: Style and Usage':
|
I think what we need here is an automatic formatter that can enforce these things. For things where there are multiple opinions, we can allow it to be configurable, so that each project can set it up the way they like, similar to I like all your suggestions, except the subroutines where I personally prefer all lowercase (but I understand your argument about arrays). But this can be configurable in the formatter. |
For what its worth, I prefer |
@everythingfunctional wrote in #56 (comment) and I am moving it to a separate issue here:
The text was updated successfully, but these errors were encountered: