Message83610
Regarding the proposed syntax:
if (f() == 'spam') -> name:
newname = name.replace('p', 'h')
Surely that should assign the *bool* result of comparing f()
with 'spam' to name? Doing anything else is opening the door to a
world of pain.
if (f() == 'spam') -> name # binds name=f()
if ('spam' == f()) -> name # binds 'spam' to name?
if (f() == g()) -> name # binds what to name?
if (f() or g()) -> name # binds what to name? |
|
Date |
User |
Action |
Args |
2009-03-15 00:37:54 | steven.daprano | set | recipients:
+ steven.daprano, georg.brandl, rhettinger, k0wax, jdwhitley |
2009-03-15 00:37:54 | steven.daprano | set | messageid: <1237077474.8.0.434582167647.issue1714448@psf.upfronthosting.co.za> |
2009-03-15 00:37:53 | steven.daprano | link | issue1714448 messages |
2009-03-15 00:37:53 | steven.daprano | create | |
|