Questions about tables ; vs ,

when making a table, what’s the difference between using ; and ,
For example:
image
They both work, but whats the difference?
Is one of them deprecated or there’s some special use?
thanks for reading!

1 Like

In terms of tables, really no difference. They’re both used to separate values in a table. Semicolon is another way to end your line of code, but is not commonly used. It’s primarily used in other languages, not so much lua.

3 Likes

Don’t think there’s any difference.

local table = {1,2,3}

and

local table = {1;2;3}

both serve the same purpose

2 Likes