JS front end devs using reactive frameworks, how often do you depend on reactivity for a computed property? that is, a property whose name that isn’t known without computation?
-
-
the $: operator is incredibly handy, I can't imagine not having it in my toolkit. And building an app without some well-defined approach to reactivity is like pulling teeth. But $: definitely doesn't belong in the language, and I don't imagine it even *could*, since it's
-
predicated on compile-time analysis. A while back I saw a fun proposal (can't remember where) — async/await but for Observables: observable function greet(name) { return `Hello ${observe name}!`; } const name = getObservableSomehow(); const greeting = observe greet(name);
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
In that case, using symbols for names is very useful. Usually it's for implementing an interface, so I don't have any prior examples of symbol-named reactive properties, but I wouldn't want to prevent it.