4 ms·
I’d favour idempotence, because it allows retrying with the same result. So more of a “make it so” approach, but it doesn’t matter if it’s imperative or declar
by jiehong 5y ago
I’d favour idempotence, because it allows retrying with the same result.
So more of a “make it so” approach, but it doesn’t matter if it’s imperative or declarative.
That being said, it depends on the action. “Send missile” should be imperative because it destroys something. I wouldn’t even turn it into “ensure 1 missile hit that target”, because it could lead to many missiles could be launch and that’s probably not the amount of control I’d like.