21 Jul
2023
21 Jul
'23
12:21 a.m.
On Fri, 21 Jul 2023 at 05:53, Random832 <random832@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