Quote:
Originally Posted by GeeTwo
Calling two negatively phrased language-dependent methods is better than one comparison? If there were an isFinite() method, I would consider using it.
|
Better than using x==x, which seems hacky and is surely platform/implementation dependent. It's better not to introduce hard-to-diagnose bugs in your code.