lua-users home
lua-l archive

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

Given the "depth" of lua's table, how generic they are, a one-size-fit-all would spawn confusion. Sure, having that operator open for overloading shouldn't be restricted, (or, maybe it should, look at how c++ turned out) but a "table concatenation operator" is hard to define.

Walt Rorie-Baety wrote:
Sorry if this has already been answered, but I've always wondered: has anyone ever thought of using the concatenate operator with a table, analogously to how it's used with strings? The awkwardness of combining two tables together has always irritated me, and the concatenate operation seems to me to represent the closest fit to the concept. Am I just dreaming, have I been standing too close to the metaphorical fumes given off by other programming languages, or is this a possible addition to the language space, if only as an experiment?

Walt "BMeph" Rorie-Baety
"A mountain that eats people. I want one." - Richard, of