Re:Case against OOP is understated, not overstated (2020)
by Scarblac on Friday February 11, 2022 @02:19AM
(#30298102)
And if you don't store the answer in some kind of state, it's lost and computing the pure function was useless.
Re:Case against OOP is understated, not overstated (2020)
by HelloNurse on Friday February 11, 2022 @05:17AM
(#30299593)
In typical functional languages state is managed so that it doesn't hurt, not completely absent.
For example, a REPL keeps state in the messages it prints to the terminal and this state isn't visible in the pure function definitions and expression the program is concerned with.
And then there are pure functions. Every time you compute a function using an input no-one has tried before, you are probably computing something that is not already known. You do this routinely even with a calculator.