3 ms·
Functional programmers argue that pure functions are easier to reason about than functions that drag in state (like methods in OOP tend to).
by jlg23 5y ago
Functional programmers argue that pure functions are easier to reason about than functions that drag in state (like methods in OOP tend to).
- na85 5y agoPlease list some real-world software of significant complexity that is 100% purely functional.
- jlg23 5y agoWhere does the "100% purely functional" requirement come from? By some strict definition, this is impossible, because you'd not have any means of communicating the result of your computation. In pure OOP speak: A "final static" method is easier to reason about than some non-static, non-final method. (But when a method is defined as "final" and "static", the providing class only serves as a namespace - where is the OOP in that?)
- toomanydoubts 5y agoHasura, Pandoc, XMonad?