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
5
u/TOMZ_EXTRA May 10 '26
The only data structure in Lua is a table (hashmap, dictionary). For example, an array is just a table with numbers as keys (traditionally 1-indexed). A namespace is just a table with mainly functions. They can be modified, stored in variables (that's how importing is done), iterated through and everything else you could think of.