Re:Show HN: Functional programming for modern Fortran
by milancurcic on Wednesday November 23, 2016 @08:46PM
(#13027338)
Unfortunately, Fortran standard does not provide good support for generic programming so some level of repetition is necessary :/. I don't see this as a major issue though - boilerplate coding happens once. In any case, pick any language that supports generic programming, and if you dig deep enough, you will run into boilerplate, in one form or another. :)
[ Parent
| on HN ]
Re:Show HN: Functional programming for modern Fortran
by fdgdasfadsf on Thursday November 24, 2016 @01:24AM
(#13028591)
To clarify I'm familiar with how Fortran handles generic programming and my frustration with it extends well beyond having to write interface blocks (although these are annoying too). I regard having several versions of functions handling e.g. different length floats as pretty tedious repetition - that in my experience can quickly turn into a maintenance nightmare. Maybe this is outside the scope of what an IDE could help with though. Could some kind of function templating be possible in future versions of Fortran?