DEV Community

Discussion on: We don't need a ternary operator

 
mortoray profile image
edA‑qa mort‑ora‑y

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.