|
|
|
|
|
by duskwuff
4170 days ago
|
|
Perl5.18 has some limited support for Perl6-style function signatures, but it's still considered "experimental" and requires a pragma to enable. I don't consider that to really be part of the language yet; real-world Perl5 function definitions end up looking like this, at best: sub foo {
my ($foo, @bar) = @_;
...
}
I'm not sure if that's valid syntax in Perl6 or not, but either way it's certainly not idiomatic. |
|
As a practical programmer, I have enjoyed signatures and run-time type checking for years, provided by libraries. Even now, these libraries are more featureful than core signatures.