Featured
Watch + defer + std/math
Small but very “MKS”: module import, watched state, deferred cleanup, and a visible flow of events.
using "std/math";
var x =: 10;
watch x;
on change x ->
Writeln("x changed to", x);
<-
defer ->
Writeln("leaving scope");
<-
x =: square(x);
Writeln("result:", x);