David Green writes:
> The actual issue is how to distinguish cardinal numbers from ordinals, 
> right?  So if we want ordinal numbers, why not use ordinals?

While we're here, I think perl should understand ordinals
(http://mathworld.wolfram.com/OrdinalNumber.html), too.  The syntax is
quite ready for it:

    $w = +0...;
    $w1 = $w + 1;
    assert($w1 > $w);
    
    sub wn($n) { $n ?? wn($n-1)+1 :: $w }
    $w2 = 0... + wnÂ0...;
    assert($w2 == $w*2);

Just think of the possibilities!  :-)

Seriously though, putting 1st, 2nd, nth, etc. in the language is somehow
very appealing.  It makes my heartburn about m:1st// settle down quite a
bit, too.

Luke

Reply via email to