3 ms·
Fortran is an example of a language that has pointer support, and few Fortran programs need to use pointers. Contrast that with C/C++.
by greglindahl 10y ago
Fortran is an example of a language that has pointer support, and few Fortran programs need to use pointers. Contrast that with C/C++.
- gh02t 10y agoPointer use is rare in Fortran, too. I only really see it used to create views into arrays. But Fortran has a ton of features that aren't used much, e.g. the OOP stuff (which I've never seen used seriously and I'm moderately experienced with Fortran in several flavors). I'd attribute it to Fortran having become a very specialized language, with most of its users basically indifferent to a lot of the shinier new features because they just don't add much for that niche.
- fiedzia 10y agoI've been told that pointers in Fortran provide some guarantees that C does not (was it no aliasing?), and that makes big difference for compilers.