back

by AlexeyBrin·11y ago·view on hn ↗
Does anybody know of any language that supports OO, but that lets you declare pure functions/methods - enforcing that those pure functions/methods only use other pure functions, don't use global objects, etc?

Well, turns out that one of the oldest programming languages in existence, Fortran lets you do OOP, it also has pure functions and subroutines. I'm talking about about Fortran 95/2003/2008:

http://h21007.www2.hp.com/portal/download/files/unprot/fortr...

1 comments
I would never have guessed. I wonder why this didn't spread more - it looks like a great way to mix FP and OOP.