On Fri, 21 Jul 2023 at 05:53, Random832 <random...@fastmail.com> wrote: > > On Mon, Jul 17, 2023, at 16:41, Dom Grigonis wrote: > > Would be interesting to see if my preference is an outlier or not really. > > I think this is a false dichotomy. We should consider VB-like conditional > expressions if(condition, when_true, when_false) as well. >
Why? That sort of expression would be syntactically a function call, which you can already create, but which would eagerly evaluate both its arguments. The entire value of an actual conditional expression is that it WON'T evaluate the expression it isn't using. ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/XCD7BX764Q7VZXICBX6PPHFSG3PZJPJ5/ Code of Conduct: http://python.org/psf/codeofconduct/