[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: oo notation
- From: Gavin Wraith <gavin@...>
- Date: Mon, 07 May 2007 13:41:59 +0100
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/