by mikewarot · 5y ago · 0 comments
If you assigned something to the system clock, it would act like an interval timer, for example.
The language can help with debugging by providing traces of execution that you can record and replay to inspect. Then you can query the trace to answer any questions you have about the execution of the program.
a::b*c; b:2; c:3; a results in a being equal to 6, and if you update b or c a will update too.
a = 10
b = 20
c = a * b
s = "{c}"
widget.display(s) -- will show '200' at the start
a = 2 -- c = 40 and widget shows '40'
It's like a spreadsheet. In a pull system, each dependent would have to periodically update itself, which means they'd be doing unnecessary work when there haven't been changes, and be stale (for longer than necessary) when there have been changes.