News for hackers. Stuff that matters.
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:

    counter.set(counter.get() + 1)
One would think that proper integration into the language also means getting rid of those "noisy" setter/getter calls.
Re:A proposal to add signals to JavaScript by Offler on Monday April 01, 2024 @07:14AM (#39892870)
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.