lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Dear All,

Has it already been considered (and in that case rejected, I fear),
to add syntactic sugar for sets in table constructors?

I'd guess it is technically possible to handle

example = {
["foo"],
["bar"],
["baz"]
}

as an abbreviation for

example = {
["foo"] = true,
["bar"] = true,
["baz"] = true
}

Regards,
Peter