Re:A proposal to add signals to JavaScript
by flohofwoe on Monday April 01, 2024 @05:29AM
(#39892235)
I was wondering about this awkward code:
One would think that proper integration into the language also means getting rid of those "noisy" setter/getter calls.
[ Parent
| on HN ]
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.