3 ms·
I think I expressed myself poorly. You're correct that the ultimate result of all useful code is changes to interpreter state. Even a simple variable assignment
by matheusmoreira 3y ago
I think I expressed myself poorly. You're correct that the ultimate result of all useful code is changes to interpreter state. Even a simple variable assignment creates an object in memory and a mapping from the variable to that object.
I meant to allude to the fact Ruby has a single global namespace that all Ruby code adds bindings to. In Ruby we have to manually namespace stuff just like we add prefixes to functions in C. Python on the other hand creates isolated namespaces for each module which makes it impossible for them to clobber each other. Import creates links between those isolated namespaces.