DEV Community

Discussion on: The Ternary Operator vs The Conditional Operator WTF

Collapse
 
ederchrono profile image
Eder Díaz

I'm guilty of using 'a ternary operator' more than once.
In my defense it happens because when we have a couple of appearances of the ternary operator in an algorithm and then I want the other person to add another, I think it is more practical to say "add a ternary over there" instead of "add the ternary operator" because it could happen that the other person things I'm referring to a previous one.

Collapse
 
joelnet profile image
JavaScript Joel

I think that is correct English when used this way. Because you could also say "add a conditional operator over there".

Maybe someone with an English degree can explaining these rules :)