Zwillingssterns Weltenwald
Published on Zwillingssterns Weltenwald (https://www.draketo.de)

Startseite > Immutable function arguments and variables

Immutable function arguments and variables

  1. Dev A: “Fortran is totally outdated.”
  2. Dev B: “I wish we could declare objects in function arguments or variable values as immutable in Java and Javascript.”

Fortran developer silently weeps:

! immutable 2D array as argument in Fortran
  integer, intent(in) :: arg(:,:)
! constant value
  character(len=10), parameter :: numbers = "0123456789"

See parameter vs. intent(in) [1].

(yes, I’m currently reading a Javascript book)

If you now want to see more of Fortran:

  • Fortran Surprises [2]
  • Writing a commandline tool in Fortran [3]
Werke von Arne Babenhauserheide. Lizensiert, wo nichts anderes steht, unter der GPLv3 or later und weiteren freien Lizenzen.

Diese Seite nutzt Cookies. Und Bilder. Manchmal auch Text. Eins davon muss ich wohl erwähnen — sagen die meisten anderen, und ich habe grade keine Zeit, Rechtstexte dazu zu lesen…


Source URL: https://www.draketo.de/english/free-software/immutable-java-js-fortran

Links:
[1] https://www.draketo.de/light/english/fortran-surprises#sec-3-3
[2] https://www.draketo.de/light/english/fortran-surprises
[3] https://www.draketo.de/english/free-software/fortran