News for hackers. Stuff that matters.
Re:Why physicists still use Fortran by computerphage on Sunday December 18, 2016 @05:09PM (#13207982)
It would be nice to have access to an overloadable index operator that works on multiple dimensions at once (like C#'s [1, 2, 5] syntax). It's sometimes not easy to write something to be efficient if it has to go one-by-one like [1][2][5].
Re:Why physicists still use Fortran by gpm on Sunday December 18, 2016 @06:26PM (#13208353)
The ndarray library indexes via tuples, i.e. [(1,2,5)], which should be just as efficient as a built in syntax (if perhaps a bit uglier).
Re:Why physicists still use Fortran by spullara on Sunday December 18, 2016 @05:16PM (#13208028)
Doesn't Rust have macros that let you modify the syntax? Maybe you could do this.