You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To ensure a predictable and consistent environment for all Mica scripters, I believe the ability to create globals should be reserved for the core library, and embedders should use modules (#74) instead. Following that, scripts should not set global variables, but rather return module tuples to pass things back to the embedding program.
The text was updated successfully, but these errors were encountered:
One concern I have with this is that this'll make the REPL effectively useless, since local variables are not visible from one chunk to another. Then maybe the correct way would be to make global variables opt-in during script compilation, for REPL purposes.
To ensure a predictable and consistent environment for all Mica scripters, I believe the ability to create globals should be reserved for the core library, and embedders should use modules (#74) instead. Following that, scripts should not set global variables, but rather return module tuples to pass things back to the embedding program.
The text was updated successfully, but these errors were encountered: