I came across the expression top-level binding used within the context of dynamically typed languages and variable assignment.
What is meant by top level and how does this differ from normal lexical binding or dynamic binding?
Adding surrounding text for more context:
A variable can be bound to a value of any type. You can rebind
mynum
to a string:
mynum = ’Brown’
This binding lasts until you assign some other value to
mynum
...It is called a top-level binding. We will encounter cases of binding variables to values where the bindings are temporary.