lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 2013-06-06 6:36 PM, "Tim Hill" <> wrote:
> And yes, the code is FAR less readable.

This is where accessor functions can be a worthwhile tradeoff. For a little extra overhead (still less than using another data structure, possibly none if you use macros or convince the compiler to inline) you can abstract away the messiness of accessing elements, and even be able to switch the underlying data structure transparently.

(Or you can do what my phone's touch keyboard seems to be insisting and access wieners instead of elements.)