[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: expression as statement
- From: "Juris Kalnins" <juris@...>
- Date: Tue, 17 Nov 2009 14:02:40 +0200
What is the preferred way of writing subj. in Lua?
Say, I want to write code that does '#' on value x. I can write:
while #x do break end
do local _ = #x end
(function () return #x end)()
... and so on.
Is there something that has least runtime and size overhead,
i.e. doesn't create extra branches or stack allocations in bytecode?