Hacker News new | past | comments | ask | show | jobs | submit login

Also loops will potentially behave awkwardly, due to the table having shifted into dictionary-esq indexing.



This won't be a big deal. The 0 key will be in the hash part, and the 1-#t keys will be in the array part. The language doesn't expose the distinction, so the loop-related awkwardness is limited to a tiny performance hit.


If you try to use ipairs to iterate then it will skip the zero-th index but if you use a numeric for loop (for i=0,N do) then you should be fine.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: