lua-users home
lua-l archive

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


On Tue, Jan 26, 2010 at 2:58 PM, spir <denis.spir@free.fr> wrote:
> -- common other choice
> MAX = ...
> if n < MAX+1

But why do an extra operation? This alone would make the first one
better (it expresses the condition more clearly)

(The 3rd one reminds me of old C code too much to be comfortable)

steve d.