Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
flohofwoe
· 2y ago · 0 comments
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.
Comments
[–]
Offler
2y ago
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.