DEV Community

Discussion on: We don't need a ternary operator

 
mortoray profile image
edA‑qa mort‑ora‑y

No, c ? false | 1 would evaluate to false in Leaf. The | operator applies only to optional types, not truthy values.