Darren Duncan wrote:
> I was studying the synopsis today for how Perl 6 uses infinities, and among 
> the 
> 48 occurrences of "[|-|+]Inf" in the synopsis, I noticed that in some places 
> you 
> seemed to use "+Inf" to mean positive infinity and other places you just say 
> "Inf".
> 
> So are there just 2 canonical infinity values, "-Inf" (negative infinity) and 
> "+Inf" (positive infinity) or is plain "Inf" a third one?  Or is "Inf" the 
> same 
> value as "+Inf"?

Inf === +Inf, they are both the same, just like 2 === +2

> If "+Inf" and "Inf" are the same value, then I recommend just using one of 
> those 
> literals for all occurrences, for consistency.

I agree with Carl here: depending on context both can make sense.

Cheers,
Moritz

Reply via email to