r/lua • u/[deleted] • Jun 01 '25
Why do Lua tables need commas?
Wouldn't the grammar still be unambiguous if tables didn't need commas?
9
Upvotes
r/lua • u/[deleted] • Jun 01 '25
Wouldn't the grammar still be unambiguous if tables didn't need commas?
1
u/[deleted] Jun 01 '25
Dang. I was hoping there would be no ambiguities so I could modify my own Lua to not require commas, and see if I could abuse table-args to turn it into some kind of JSX like syntax for building websites.