Hacker News new | ask | show | jobs
by milancurcic 3495 days ago
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. :)
1 comments

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?