On Sun, Apr 06, 2003 at 12:38:29AM +0200, Matthijs van Duin wrote:
In other words, if you treat Inf as any particular number (which Mr
Mathematician stridently yet somewhat ineffectually reminds you that are
*not* allowed to do!), then you may get peculiar results.

There is no problem with doing that, as long as you define what you want it to do.

Actually, if you really want to "do" infinities the math-way, then just grab a book on set theory.


one thing you might not like however is that when you go beyond the finite, it becomes necessary to differentiate between cardinal and ordinal numbers.

That's probably something you don't want to do in perl


The IEEE-float-style infinities are quite sufficient for most purposes


One thing I agree is that writing 1..Inf is a *bit* sloppy since the range operator n..m normally produces the numbers i for which n <= i <= m while n..Inf gives n <= i < Inf

but I can live with it

--
Matthijs van Duin  --  May the Forth be with you!

Reply via email to