lua-users home
lua-l archive

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



On 21-Mar-05, at 12:12 PM, PA wrote:

Note the lack of parenthesis. This is a gratuitous deviation from how I invoked functions: always use parenthesizes.

oh, so you would want to write:

   map(table, increment())

rather than the obviously-correct

   map(table, increment)

How about

   sort(table, compare())

instead of

   sort(table, compare)

Are those gratuitous deviations? Or simply a logical way of saying which function to use? Which is exactly the same thing as the for statement.