Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Generic Programming #5

Open
jacobwilliams opened this issue Jul 6, 2017 · 3 comments
Open

Proposal: Generic Programming #5

jacobwilliams opened this issue Jul 6, 2017 · 3 comments

Comments

@jacobwilliams
Copy link
Member

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

@zbeekman
Copy link
Member

zbeekman commented Jul 21, 2017

+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
Copy link

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
Copy link
Member Author

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants