MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lua/comments/1r2kxr4/lua_tables_the_swiss_army_knife_of_data_structures/
r/lua • u/swe129 • Feb 12 '26
2 comments sorted by
9
@"...they implement associative arrays and can be indexed by numbers, strings, or almost any Lua value (except nil),..."
There is another Lua value cannot be a key, NaN.
See 11th paragraph
1
I really would like better nomenclature that identifies strictness of types inside the only data structure, like dictionaries are only for strings not equivalent to a lookup table. the moment you have a number in there, then that's another thing.
9
u/EvilBadMadRetarded Feb 12 '26
@"...they implement associative arrays and can be indexed by numbers, strings, or almost any Lua value (except nil),..."
There is another Lua value cannot be a key, NaN.
See 11th paragraph
1
u/Old_County5271 Apr 14 '26
I really would like better nomenclature that identifies strictness of types inside the only data structure, like dictionaries are only for strings not equivalent to a lookup table. the moment you have a number in there, then that's another thing.