Reactive programming is powerful, but often overlooked due to obscure syntax. Given int x,y,z; we can write z=x+y for immediate assignment. What if we could also write z~=x+y to ensure z is recalculated formulaically whenever x or y change, plus when(z) {..} to monitor changes?
-
-
You could do that in ReactJS/JavaScript but I really feel adding new semantics would just make things more complicated and create issues. Although, you could already create a new type in UE BluePrints fairly easily and just define a function underneath for more complex operationspic.twitter.com/VFEEW2arsb
-
FRP has already gone through the hype cycle, and I have yet see it really stick anywhere yet, basically for the reasons you point out. Good example here: https://elm-lang.org/blog/farewell-to-frp …
End of conversation
New conversation -
-
-
I've wondered why react doesn't mandate and propagate global props everywhere without relying on the manual crap.
-
Because some idiot will code z = () => x + y: x = () => z - y; y = () => z - x;
- 1 more reply
New conversation -
-
-
Why wouldn't a programming language implementation have all the same problems? Possibly more because it would have to be generalized?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
If this was verilog one would simply say: always @(X or Y) Z = X+Y Hardware behaves exactly like this..any change in inputs automatically shows up at the output.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
That's the trade off, cleaner to define, more difficult to operate. OOO becomes nightmarish.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
A language level keyword such as "reactive int i = 10" would be a good idea?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.