5 ms·
It's limited. You can pass functions as arguments to other functions. You can't return a function as a function result.
by milancurcic 5y ago
It's limited. You can pass functions as arguments to other functions. You can't return a function as a function result.
- ogogmad 5y agoI was asking whether these are worth having in a future version.
- milancurcic 5y agoOops, I missed that. I would enjoy this feature but I think it's unlikely to be considered by the committee. As far as I'm aware it hasn't been discussed.
- adgjlsfhk1 5y agoSpecifically, Fortran's type system isn't nearly advanced enough to usefully support this type of feature well. Higher order functions are really useful, and if you want them, you should use a different language.