Skip to content

Mark global variables automatically as const #2462

Discussion options

You must be logged in to vote

I think this was not done at least in part because declaring variables as const prevents them from being deleted/garbage collected when they are removed from the notebook. Pluto deals with adding and removing variables by creating a new module at each execution and eventually deleting all variable from previous modules if they are not in the notebook anymore.

I seem to remember @fonsp telling at some point that if you have a const variable it can't be deleted this way

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fonsp
Comment options

@abraemer
Comment options

Answer selected by fonsp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants