-
How to you decide between using a Record and a Table? |
Beta Was this translation helpful? Give feedback.
Answered by
hugomg
Aug 28, 2021
Replies: 1 comment 1 reply
-
Records are implemented as userdata. Creating and acessing a record is faster in Pallene. The downside of records is that they are opaque to Lua. Lua cannot create records and also cannot directly access the fields. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JLPLabs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Records are implemented as userdata. Creating and acessing a record is faster in Pallene.
The downside of records is that they are opaque to Lua. Lua cannot create records and also cannot directly access the fields.