by sushisource · 10y ago · 0 comments
Do you have any strategies for that, or is the idea that these features are really only for testing functions that don't cause those sorts of side effects?
So you do all your manipulations and then hit a "Save" button at the bottom which triggers the save to disk.
Similarly if your input depends on a side effect (web resource?) You place a button on the top which will "start" your program.
Of course, the programming environment can offer primatives (debouncing and the like) to help make this stuff easier.
I think this sort of highly interactive environment is best suited for languages without side effects at all.
I.e. purely functional language as you see it in a spreadsheet.
Allowing any language (JS, Python and so on) gives problems with how to handle errors, show variable values that change over time, how to handle programs that take a long time to evaluate (or never evaluates), how to handle programs that modify the environment (i.e env.x = env.x + 1) and so on.