4 ms·
> That's why if x is state then f can never be purely idempotent That is simply not true. f could be, for example, “set x.variable to 7”, which is definitely i
by Hendrikto 6mo ago
> That's why if x is state then f can never be purely idempotent
That is simply not true. f could be, for example, “set x.variable to 7”, which is definitely idempotent.
- conradludgate 6mo agoThere's no side effects in f here, so the statement does not apply
- Hendrikto 6mo agoParent said > State is in practice always subjected to side effects and concurrency. There was never any claim or assumption regarding f. Maybe the way you interpreted it is what they meant, but it is not what was stated.
- raffael_de 6mo agoyou are oversimplifying with your set variable example. the context is complex state management as with online purchases.