On Thu, 2002-09-05 at 01:47, Brent Dax wrote:
> Aaron Sherman:

> The one thing I notice all over the place is:
> 
>       sub abs($num is int){ return $num>=0 ?? $num :: -$num }
Another thing I'm not sure on... how do you force numeric, but not
integer typing on a parameter? Is that C<num[ber]? $var> or C<+$var>? I
don't think there's anywhere that it's super-critical, but some of Perl
(e.g. bitwise operators) will want to have two signatures, one for
numbers and one for general scalars.


Reply via email to