Skip to content

Reclaiming .f file extension for modern Fortran (free form) #363

@certik

Description

@certik

This was first seriously suggested here:

#359 (comment)

This deserves an issue of its own. Let's discuss the pros and cons, here is a start:

Cons

  • Change of established (by now) conventions to use .f for fixed-form and .f90 for free-form (see @sblionel's post for the history of this). Thus creating even more confusion.
  • Syntax highlighting in Vim, GitHub, etc. might be incorrect for free-form code in .f files
  • Some existing Fortran users might be disappointed with this choice
  • While this can be implemented in fpm easily, it might break some other existing tools around Fortran

Pros

  • .f is a nice extension, natural for Fortran
  • It does not have 90 in the name, thus nothing "old" about it
  • Writing fixed-form is not recommended for new projects, so the default good extension should be reserved for free-form, rather than fixed-form
  • New Fortran users might like this new extension more

Relevant other issues: #250, #359.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions