On 2 November 2016 at 19:34, MRAB <[email protected]> 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
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/