Closed schwern closed 1 year ago
Method::Signatures supports required slurpies.
$ perl -MMethod::Signatures -wle 'method foo (@foo!) {} main->foo' In call to main::foo(), missing required argument @foo at -e line 1.
The idea that slurpies are always optional is baked pretty deep into Function::Parameters and I'm having difficulty enforcing the requirement.
See #17. It's not that they're optional, it's that they consume a list and lists can be empty.
Method::Signatures supports required slurpies.
The idea that slurpies are always optional is baked pretty deep into Function::Parameters and I'm having difficulty enforcing the requirement.