3 ms·
>> I thought functional programs have no 'state' > The point of FP to me is that you can hide the state from the programmer Well which is it?
by mrkeen 3y ago
>> I thought functional programs have no 'state'
> The point of FP to me is that you can hide the state from the programmer
Well which is it?
- galaxyLogic 3y agoNo programmer-visible state. If you ask the programmer "What is the current state of your functional program?" they probably cannot answer can they? The functional programs have no state, the engine that runs the program of course has. But the engine that runs the program is not a functional program.