I am thinking of making table constructor syntax more like statements. The change would be making end-of-line a separator and allowing empty elements. So then this is legal and produces an empty table:
{,,,,,,}
Using end-of-line separators:
return M.new{
id = doc.id
category_id = doc.topic_category_id
order = doc.topic_order
question = doc.question
answer = doc.answer
}
The other change would be requiring each element to be on one line just like statements. So this would be illegal:
{
one
= 1
}
We can discuss this tonight.