The counter-intuitive rise of Python in scientific computing

Ha, the associate trick is impressive: so Fortran already has type inference. While this did not work:

i = [1, 2]
print *, i
end

This works:

implicit none
associate (i => [1, 2])
    print *, i
end associate
end

@pmk doesn’t this work almost exactly like your auto proposal?

1 Like