lua-users home
lua-l archive

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


I cannot say that I find anything weird about the notation
("x = %d\n"):format(123).
Would it be possible, I wonder, to add some sugar that allowed
the notation "x = %d\n":format(123)? There is the precedent of
letting literal strings lose the parentheses when they are a
single argument to a function. I cannot see any ambiguities
arising, because complex string expressions would still need
the parentheses.
-- 
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/