3 ms·
I was wondering about this awkward code: counter.set(counter.get() + 1) One would think that proper integration into the language also means getting rid o
by flohofwoe 3y ago
I was wondering about this awkward code:
counter.set(counter.get() + 1)
One would think that proper integration into the language also means getting rid of those "noisy" setter/getter calls.
- Offler 3y agoI much prefer the explicit get/set methods. MobX I think used the magic approach as did svelte and I believe svelte have realized it's a mistake. It makes it harder to reason about the code, better to be explicit.