r/ProgrammingLanguages • u/Pie-Lang • May 09 '26
Blog post The Namespace Problem
https://www.alialmutawajr.com/blog/post1
14
Upvotes
r/ProgrammingLanguages • u/Pie-Lang • May 09 '26
View all comments
Show parent comment
2
u/Pie-Lang May 10 '26
You just explained that Lua's namespaces are just tables. This entails that the values stored inside them must be looked up at runtime.
Meaning, if you try to access an object inside a namespace, the interpreter could not possibly tell whether that object does exist inside the namespace or not until runtime.
That was my issue.