
Nov. 2, 2016
7:38 p.m.
On 2 November 2016 at 19:34, MRAB <python@mrabarnett.plus.com> wrote:
How about borrowing from C:
target = expr1 || expr2 || expr3 target = expr1 && expr2 && expr3
except that only None would be considered falsey?
Or would that be confusing?
Sorry for intruding into discussion and off-topic again, Such things like result = a > b ? x : y is IMHO a syntactical herecy. Such things disgust me from programming. Why on earth one cannot just wrap it in function if (a > b) { return x; } else { return y; } and write: c = nicefunc(a,b) Which will be WAY more readable and compact, if one wants to be compact for some reason. Mikhail