merari42@lemmy.world to Programmer Humor@programming.dev · 30 天前WishUnderflowlemmy.worldexternal-linkmessage-square37fedilinkarrow-up1452arrow-down110
arrow-up1442arrow-down1external-linkWishUnderflowlemmy.worldmerari42@lemmy.world to Programmer Humor@programming.dev · 30 天前message-square37fedilink
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up4·30 天前 I had a visceral reaction to this because obviously the wish count should be decremented before the wish takes place. Why? Shouldn’t you decrement the limited resource the user has access to in case the thing you are doing fails?
Why? Shouldn’t you decrement the limited resource the user has access to in case the thing you are doing fails?