Is creating nested subroutines/functions considered good practice in Fortran?

   import [[ :: ] import-name-list ]
or import, only : import-name-list
or import, none
or import, all

introduced starting Fortran 2018 standard revision provides better control about variable scope in the internal subprogram.

3 Likes