Function-Parameters
Function-Parameters copied to clipboard
Function::Parameters - define functions and methods with parameter lists ("subroutine signatures")
https://github.com/mauke/Function-Parameters/blob/cfb871f898e9a7f3bb3c7c97ec824e6659c62181/lib/Function/Parameters.pm#L268-L271 Should this section here also set `check_argument_types`? The use case is I'd like to be able to do ```perl use Function::Parameters qw(:lax) ``` and have `Function::Parameters` be effectively a...
perl 5.32.0 ``` + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Function::Parameters Writing MYMETA.yml and MYMETA.json +...
Using a slurpy array with named parameters generates this warning: `Odd number of paired arguments for method my_method at test.pl line 10.` ``` method my_method (:$id, @args) { } ```...
Looks like now it can get only the arguments names, but not defualt values in case of optional argument. I would be interested in having that feature. For example, it...
In porting over a codebase from Method::Signatures, I am dealing with a lot of methods that were using class names in the parameter lists. For example: ``` use Function::Parameters; use...
This was discussed already on RT: - https://rt.cpan.org/Ticket/Display.html?id=128044 - https://rt.cpan.org/Ticket/Display.html?id=128053 But I think it worth giving this some visibility there. It's a bad idea to store references in the Hash...
This is for #34 This would add a new option "coerce_argument_types", which defaults to 0. Once enabled it would do type coersion like below, before type checking. ```perl $value =...
I use this Function::Parameters with Type::Tiny. I know it does not support coercion now. But I wonder if that is possible to implement. Thanks.
It can be very helpful to include line numbers etc for failure messages. Not having the choice when parameters are wrong is less helpful, though. This change makes `F::P::_croak` behave...
I just came across this module and it basically solves the architectural problems with Method::Signatures. I think it's superior and would like to make a fully compatible wrapper. There's some...