I would like to implement ternary operator in my code **(cond ? x : y)**. I am not going to use as alias for if expression, I plan to use it for some vectorized masked blends, however I am having problems with operator precedence, I managed to do **cond ? (x : y)**, but not **cond ? x : y**.
I do recall I have seen presentation where it was demonstrated how to do it properly. Likely it was Araq's presentation, but I can't find it now.