tbl = { "1", "2", "3", } acceptable, Bug or not?

Report any Hollywood bugs here
Post Reply
Bugala
Posts: 1400
Joined: Sun Feb 14, 2010 7:11 pm

tbl = { "1", "2", "3", } acceptable, Bug or not?

Post by Bugala »

Here is an example:

Code: Select all

tbl = { "1", "2", "3", }
Point here being that after "3" there is still one comma "," and this works fine, but should it?

Personally I think it is excellent it does work this way, since quite often I notice I tend to accidentally leave the last comma there, and which in addition happens to be useful when i decide to add one more thing to the last place in case items are in different lines.

But, should I actually keep an eye more carefully in these and remove the extra commas, or is this going to be fine in the future too?
Post Reply