News for hackers. Stuff that matters.
Re:Is Fortran better than Python for teaching basics of nume... by pklausler on Wednesday September 24, 2025 @02:54PM (#45364525)
Yes, but pitfalls were added to the feature in Fortran '90 and it should now be generally avoided.
Re:Is Fortran better than Python for teaching basics of nume... by TheRealKing on Thursday September 25, 2025 @11:25AM (#45373895)
I strongly disagree. Arbitrary bounds are tremendously helpful in dealing with arrays whose starting point must be offset.
Re:Is Fortran better than Python for teaching basics of nume... by pklausler on Thursday September 25, 2025 @05:59PM (#45379724)
I didn't say that they were not helpful; I said they have dangerous pitfalls. Also, they're not perfectly portable. My testing shows that only two compilers get lower bounds right in all the tricky cases that I know of.