D
Daniel Billingsley
My understanding is that classes must implement/override these operators as
a pair, so I would expect it's safe to expect these two to return the same
results. Is there any difference, performance or otherwise?
if (! (a == b))
{
blah blah blah
}
if (a !=b)
{
blah blah blah
}
I'm reviewing some code and the author uses the former exclusively, but the
2nd seems slightly more straightforward to me. I just want to be sure it
really is just personal opinion.
a pair, so I would expect it's safe to expect these two to return the same
results. Is there any difference, performance or otherwise?
if (! (a == b))
{
blah blah blah
}
if (a !=b)
{
blah blah blah
}
I'm reviewing some code and the author uses the former exclusively, but the
2nd seems slightly more straightforward to me. I just want to be sure it
really is just personal opinion.