Identity Compare Immutable Setting

Bundle a multi-field setting into one immutable value and hand it to a hot consumer as a supplier, so the consumer asks "has this changed?" with a single reference comparison instead of diffing N numbers per buffer — and can never observe the fields half-updated. Use when a per-buffer or per-frame consumer has to react to a user setting, or when a setting made of several fields is read inconsistently.

maxrave-dev 6b90774 6.7 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/identity-compare-immutable-setting commit 6b9077406b

Frequently asked questions

npx skillmds@latest add maxrave-dev/identity-compare-immutable-setting