Fortran-FOSS-Programmers / Fortran-202X-Proposals

A place to collaborate on proposals for the next Fortran standard
21 stars 0 forks source link

Proposal: Generic Programming #5

Open jacobwilliams opened 7 years ago

jacobwilliams commented 7 years ago

... there are many ideas floating around for this...

zbeekman commented 7 years ago

+1,000,000,000,000

Currently, verbosity and lack of DRY (don't repeat yourself) make Fortran a real PITA sometimes. Some enhanced generic programming capabilities are greatly needed. We don't need the nightmarish "what is the type of this object" that sometimes accompanies this (I'm looking at you, Python) and I don't think templating is the answer either.

cmacmackin commented 7 years ago

There was a proposal several years back for parameterised modules which looked quite promising. It was abandoned for some reason, though, so perhaps there was some fundamental problem.

jacobwilliams commented 7 years ago

Yes, I've seen that before (wow, it's over a decade old...)

It's not clear to me if this proposal allows one parameterized model to use another parameterized module, and have the input of one pass through to the other. Is that in there somewhere? Without that, it's not very useful in my option. Imagine you have dozens of interdependent modules that you want to use for reals, integers, custom types, etc...