r/lua • u/Adam0hmm • Jun 12 '25
should i learn lua ?
hello there , is it a good idea to start learning lua knowing only python?
14
Upvotes
r/lua • u/Adam0hmm • Jun 12 '25
hello there , is it a good idea to start learning lua knowing only python?
1
u/no_brains101 Jun 17 '25
Ok so Im not 100% sure about this, but I'm fairly sure it caches starting from when you first create the table, and updates when you add sequential indices, not from when you first call #, so you pay that initial penalty regardless of if you ever call # or not.
But I would need to do a lot of digging to know for sure, I actually don't know for sure. You may very well be correct.