I'd argue that because
sub foo ($x) { ... }
Is a shorthand for:
sub foo { my $x = $_[0]; ... }
Then:
sub foo (Int $x) { ... }
Ought to be a shorthand for:
sub foo { my Int $x = $_[0]; ... }
In reply to Re^2: The Future of Perl 5
by tobyink
in thread The Future of Perl 5
by Laurent_R
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |