Hacker News new | past | comments | ask | show | jobs | submit login

Are things like higher order functions and closures relevant features for Fortran programmers? This is an open-ended question.

[edit] Just to be clear, I don't think Fortran has these.




It's limited. You can pass functions as arguments to other functions. You can't return a function as a function result.


I was asking whether these are worth having in a future version.


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


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




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: