Blog32.8K views2,850 votes1 reply1 comment3,293 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 Burneyowner35.3K rep · 03 Feb 2026, 06:51 UTC