Hacker News new | ask | show | jobs
by flohofwoe 806 days 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.
1 comments

I 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.