Closed axch closed 7 years ago
We should make the decisions sooner rather than later; but I am loath to actually enforce them until the regrid branch is merged (or abandoned), and until I have a refactoring test suite to catch any mistakes I may, in my non-knowledge of Fortran, make while changing what I think is just style.
I agree with all of this, and am happy to go with the indentation suggested by Emacs defaults.
The prevalence of comment characters at the beginning of lines is a hangover from the F77 convention in which comments where signified by a 'c' in the first column. There is no reason to keep them like that.
OK, awesome. I will try to find time this weekend to implement this, if I can. I prefer 2-space indentation (even in Python, contrary to the Python community's strong preference for 4). Do you care? The extant Fortran code is mostly indented 4 spaces; do you want to keep it that way? (We also don't have to indent Python and Fortran the same way.)
Hm. I don't seem to have permissions to assign this issue to myself. Can you do that? Also Issue #6, which I want to do first.
I've assigned this to you, and also added you as a collaborator, so you should be able to do that yourself in the future.
I'm happy with 2 space indentation for Fortran - the current tendency towards 4 space is not especially intentional. I'd prefer to stick with 4 space indents for Python.
Sounds good. The 4-space convention in Python is too strong to resist, little though I may like it.
At minimum, we should address the following points (which have already disoriented me):
!
, in this case) beginning a line comment to be indented to the same level as the surrounding statements, and for the content of the comment to be separated therefrom by a space. Shall we adopt this, in spite of the prevalence of beginning-of-line comment marks in the code? Or is a different convention preferable?