Nathan Wiger wrote:
> 
> > Programs will specify arithmetic processing in typical Perl fashion:
> >
> >   use integer qw(32bit unsigned);
> >   use integer qw(64bit);
> >
> > Perl semantics will reflect this value until the end of current block.
> 
> I wonder if this wouldn't be better handled on an item-by-item basis
> like other languages that use types?
> 
>    my int $x : 64bit = some_big_val();
>    my int $y : 32bit, unsigned = 5;
>    my float $z;
> 
> -Nate

Types just seem so very un-perl. There is much to be said for the
universal scalar vairable. I'm not sure I fully understand just why we
NEED types in the language. We have functions such as:

my $integervalue = int($value);

and...

my $float = sprintf("%2.2f", $integervalue);

So what are the benifits of types?

Greg
-

Reply via email to