3 ms·
Well, the functional programming promise is that output is a function (pun intended) of inputs, no side effects allowed, thus you can understand any given funct
by Detrytus 3y ago
Well, the functional programming promise is that output is a function (pun intended) of inputs, no side effects allowed, thus you can understand any given function by reading only its code, no additional context required.
- carlmr 3y agoI find if you combine this with a strong type system like in F# the promise is upheld. You need strong type guarantees on the parameters to make it easy to understand the behavior though.
- uoaei 3y agoThat's not a pun, that's just the definition of 'functional'.
- thom 3y agoSure, but that's still you having to go to lots of places to understand what individual functions do, which doesn't seem different to the original complaint about OOP.