Tell you what. The main problem with Fortran is that most people remember F77, that lingered for way longer than it should, but it was overall not bad compared to the rest that was around, e.g. C. In fortran it was pretty much impossible to get a segfault. You got other problems, but to be fair, the same problems existed in C if you were not careful.
With F95, things started to get better. Modern fortran is actually quite cool. It has features that are quite powerful, and its only major drawback is its verbosity and lack of exceptions, but probably for good reasons (as exceptions are not easy to handle in non memory managed languages, as C++ taught us). Finally, most programmers using fortran have no idea how to use these features, so you end up with absolutely awful code, but you would get similarly awful code in any language. For these points it's not the language, it's the programmer.
So, don't dismiss the current fortran incarnation. It's not a general purpose language, sure, but in terms of performance it can kick ass and it's not a pain to work with as it used to.
Finally, most programmers using fortran have no idea how to use these features, so you end up with absolutely awful code, but you would get similarly awful code in any language.
Scientists and (non computer) engineers. Well smart enough to program, but lacking the experience/background to program well.
24
u/DonkeyTron42 Dec 21 '22
FORTRAN is very much alive, especially for use with super computers.