Fortran returns to top 20 TIOBE index

Surprised by the rise of Fortran in the TIOBE index, Txreq created an 8min20s video about learning enough Fortran from the fortran-lang.org site to make a spinning donut. At 8:00 he says, “the single thing I hated about it is the fact that you have to declare all of your variables right at the start of your program”. This is incorrect because of the Fortran 2008 block construct.

Codee, a tool vendor, has started a repo open-catalog

to consolidate the collective wisdom of performance experts on the best practices for performance. It consists of a glossary and a list of checks for the C, C++ and Fortran programming languages.

They make a similar mistake, writing

The Fortran programming language does not allow to declare variables inside loops, in the statements of the loop body.

about which I raised an issue Fortran allows declaration of variables within loops, contrary to what PWR002 says · Issue #1 · codee-com/open-catalog · GitHub. There needs to be more awareness of the block construct of modern Fortran. It could be discussed at Variables — Fortran Programming Language.

11 Likes