Subject: | Implicit types |
Consider the following.
my int $foo = 1;
my float $bar = 1.0;
my $wibble = $foo / $bar;
Right now, that's a compile error. Which is a shame, because $wibble is obviously a float.
I propose that, in the presence of a 'use types qw/implicit/', the above code should not be a compile time error. However, later on in the code,
my int $floop = $wibble;
would throw a type exception.