2 ms·
> functions generally and especially pure functions are easier to reason about than the object-oriented programming (OOP) paradigm. ...goes on to list a whole
by Karellen 3y ago
> functions generally and especially pure functions are easier to reason about than the object-oriented programming (OOP) paradigm.
...goes on to list a whole bunch of object-oriented functions. And, under "Array", specifically points out:
> These array functions do not modify the original array, but return a new array or a value based on the input array.
Yes. As the article repeatedly demonstrates, but... seemingly fails to understand?... OOP and pure functional programming are not mutually exclusive!
Edit: Also, just realised that the article has weirdly missed String.length() and Array.length() as not mutating their implicit `this` parameter?