Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
swah
on April 26, 2011
|
parent
|
context
|
favorite
| on:
Why not Lua
I had the completely opposite experience when using Lua: tables felt like a great structure to base a language on.
cpeterso
on April 27, 2011
[–]
Tables/dictionaries have been working great for Python and JavaScript, too. :D
meric
on April 27, 2011
|
parent
[–]
Python and Javascript has arrays, classes, too.
silentbicycle
on April 27, 2011
|
root
|
parent
[–]
Lua tables combine arrays and dictionaries, though. They have a dictionary-style interface, but basically, if you use consecutive integer keys, that portion of the dictionary is stored in an array with O(1) access and can be iterated in order.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: