3 ms·
I don't think B is technically idempotent either. Change still occurs but with minimal difference. You cannot cache the results and use them again next week.
by jayd16 6y ago
I don't think B is technically idempotent either. Change still occurs but with minimal difference. You cannot cache the results and use them again next week.
An idempotent change would be to pass in the current time instead of checking system time. In this case, as long as the input is the same, the result is the same. You could use cached results, but most likely you want to use new inputs.
- deleted 6y ago[deleted]
- elcomet 6y agoYes but this doesn't matter really. What's important is that running the script twice will still give you right values. From a practical point of vue it is the same as idempotency, which is what matters.