re: We don't need a ternary operator VIEW POST

TOP OF THREAD FULL DISCUSSION
re: An elision would cause its behavior to deviate from that of a ternary operator, though: if b is null/none then true ? b | 3 would return 3 whereas ...

That is true. And I think for that reason it'd make sense to raise an error if the true_value is an optional. It'd lead to a potential ambiguity in what is desired.

code of conduct - report abuse