Move function reactivity from definition to call #25
Labels
enhancement
New feature or request
expression explorer
Figuring out assignments and references in a cell
reactivity
The Pluto programming paradigm
Currently, function definitions are considered dependent on the variables and functions that are referenced in them, and function calls are considered dependent on definitions.
This breaks when
a()
callsb()
, andb()
callsa()
- even though this double recursion is not paradigmatically illegal.We should instead consider function calls dependent on the variables and functions referenced in the function definition. This will also solve the problem of reactivity in response to modifying global variables within functions.
The text was updated successfully, but these errors were encountered: