Blog32.8K views4,599 votes1 reply1 comment3,050 following
Stop Passing Array Sizes by Hand: Assumed-Shape Arrays in Fortran Modules
Passing array sizes as separate arguments is a legacy habit that defers bugs to runtime. Module procedures with assumed-shape dummy arrays let the compiler check every call — here's a worked normalization kernel and the honest trade-offs.
modulesexplicit-interfacesassumed-shape-arraysTasadduq Burneyowner34.8K rep · 03 Feb 2026, 06:51 UTC