

1·
22 days agoA denied click, the dull little thud for pressing a greyed-out button or trying to buy something you can’t afford. Packs nearly always have confirm and cancel, but players hit the denied case constantly and cancel doesn’t sound right there
Option 1 behaves closer to Python’s setdefault, since it only writes when the key is actually missing. Option 2 calls set_value on every read, which is harmless, but anyone reading a call site later will assume something changed