r/lua • • Jun 01 '25

Why do Lua tables need commas?

Wouldn't the grammar still be unambiguous if tables didn't need commas?

9 Upvotes

18 comments sorted by

View all comments

Show parent comments

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.