Message83614
At the moment binding occurs either right-to-left with "=", eg.
x = y
where "x" is the new name, or left-to-right, eg.
import x as y
where "y" is the new name.
If the order is to be right-to-left then using "as" seems to be the best
choice.
On the other hand, if there should be a form of binding explicitly for
use in an expression in order to prevent accidental use of "=" then the
order should probably be the same as "=", ie right-to-left, and a new
symbol is needed (using punctuation feels preferable somehow, because
"=" uses punctuation).
The only symbol I can think of is "~=".
How does this:
if ob ~= map[x][y].overpay:
ob.blit(x, y)
look compared to:
if map[x][y].overpay as ob:
ob.blit(x, y)
IMHO, of course. |
|
Date |
User |
Action |
Args |
2009-03-15 02:45:41 | mrabarnett | set | recipients:
+ mrabarnett, georg.brandl, rhettinger, k0wax, steven.daprano, jdwhitley |
2009-03-15 02:45:41 | mrabarnett | set | messageid: <1237085141.27.0.34672577671.issue1714448@psf.upfronthosting.co.za> |
2009-03-15 02:45:39 | mrabarnett | link | issue1714448 messages |
2009-03-15 02:45:37 | mrabarnett | create | |
|