[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Table constructors
- From: "Ashley Fryer" <lua@...>
- Date: Sun, 29 Aug 1999 01:58:08 -0700
I'm curious, is there some reason why the two types of table field
initialization lists can't be merged?
This would become legal syntax:
t = { 42, name = "bob", 45, color = "blue" }
and would be equivalent to:
t = { 42, 45 }
t.name = "bob"
t.color = "blue"
It seems like this syntax could be added without breaking backward
compatibility...?
ashley