lua-users home
lua-l archive

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


On Wed, Nov 24, 2010 at 12:14 PM, Axel Kittenberger <axkibe@gmail.com> wrote:
> selectF(x, \(tableA.foo), \(tableB.foo), \(tableC.foo))

And there's a similar problem with the current assert;  it always
evaluates the message, which might involve a costly calculation that
by definition only has to be evaluated under exceptional
circumstances.

assertF(condition,\(costly result))

Naturally, any 'short cut' can lead to Perl-ism, but there the answer
is not restricting the language, but encouraging good style. I know
people get overexcited with new features but common sense prevails -
Bjarne Stroustrup gave that advice about C++, don't try to use it all
at once.

steve d.