Reactive programming

The responsive operation spreadsheets is one of the extensions of the Scriptol language, compiled into JavaScript.

The react type defines a variable as reactive. Its value changes every time the value of variables assigned changes.
Example:

react A ​​= B + C * 10 

Whenever B or C will be assigned new values​​, the formula will be recalculated and A will take a new value.

By convention we write reactive variables in capital letters, even if any case is recognized by the compiler.

You have to assign the output to a reactive variable control a devive or interact with a web page.

Example:

A.output = 'function() {document.getElementById("sum").value = this.value;}'; 

You can use either simple quote or multi-lines quote ~~ but not double quote because the text could be transformed in the JavaScript code, and it is a case where it must not be changed.

The contents of a reactive variable is updated only when is changed the content of variables on which it depends if they are also reactive. Imperative variables in a reactive formula behave like they should do in imperative code and have no effect on other variable when then value is changed.
But if we change the contents of a reactive variable after changing that of a single variable of which another reactive variable also depends, then it is the new value of the simple variable that will be used in the update.