I know using ?: does the same thing as if else but is there an actual benefit of one over the other besides a difference in typing a few characters? Not that I would go through all my code an chance one to the other just curious if someone knows.
something really simple for example
return (a==b)?"Yes":"No"
vs
if(a==b)
{return "Yes"}
else
{return "No"}

