lua-users home
lua-l archive

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


On Fri, Oct 19, 2012 at 5:42 PM, Brian Casiello <bcasiello@gmail.com> wrote:
> "David Collier" <myshkin@cix.co.uk> writes:
> I'm not sure it's idiomatic Lua, but it would get you closer to the
> syntax above.

I'd say it's a common idiom when (a) a function has a lot of
arguments, with many with sensible defaults and (b) you want to return
values by reference.

Not to be used when needing serious performance due to table
construction, but as always, profile before optimization! (and even
then you can just reuse the table)

steve d.