
On 7/25/06, Paul Giaccone <paulg@cinesite.co.uk> wrote:
Is "is_infinity" the opposite of "is_finite" or the same as "is_plus_infinity"? The former, I would presume, but the name suggests the latter. This is the ambiguity I mentioned before. The function would be better named "is_infinite", IMO.
Agreed. A few people have mentioned:
is_plus_infinity() is_minus_infinity() I think positive/negative is better than plus/minus. It's slightly longer but fits the terminology I understand as being more "correct". std::plus and std::minus also give a precedent for plus/minus being operations (addition and subtraction), not classifications for values.
So I'd vote for these instead: is_positive_infinity() is_negative_infinity() ~ Scott McMurray