r/ProgrammingLanguages • • May 09 '26

Blog post The Namespace Problem

https://www.alialmutawajr.com/blog/post1
14 Upvotes

14 comments sorted by

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.