For review: PEP 308 - If-then-else expression
Roman Suzi
rnd at onego.ru
Sun Feb 9 14:39:43 EST 2003
New proposal:
YES @ condition or else NO
It could be spoken as:
"YES at condition otherwise NO"
Other forms are possible:
YES1 @ cond1 or else YES2 @ cond2 or else NO
*
And another variant:
YES @ (condition) or NO
where operation @ makes special object
Decision(True, value=YES)
or
False
and operation "or" unwraps Decision if it has True,
and returns NO is it is False.
Decision(True, value=YES) or NO
gives YES
False or NO
gives NO
Sincerely yours, Roman Suzi
--
rnd at onego.ru =\= My AI powered by Linux RedHat 7.3
More information about the Python-list
mailing list