[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: help with lua style and syntax
- From: steve donovan <steve.j.donovan@...>
- Date: Sat, 20 Oct 2012 08:18:30 +0200
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.