You should consider using https://metacpan.org/author/ODUCS instead of search.cpan.org as the latter is being shut down in a few days.
Random ideas that I think would make cool modules:
A version of Class::XSAccessor that allows you to create accessors which only accept certain types. For example, Class::XSAccessor allows you to create methods for your class along the lines of:
# use Class::XSAccessor { getters => ['foo'] };
# is equivalent to:
sub foo {
my $self = shift;
if (@_) {
$self->{foo} = $_[0];
}
$self->{foo};
}
# use YourModule { getters => { bar => { isa => "HASH" } } }
# is equivalent to:
sub bar {
my $self = shift;
if (@_) {
die "not a HASH" unless ref $_[0] eq "HASH";
$self->{bar} = $_[0];
}
$self->{bar};
}
Should support all of Perl's built-in reference types (HASH, ARRAY, etc) and maybe a handful of other useful types like integers, numbers, strings, blessed objects (check isa), etc.
Happy to chat more about API design etc.
This would be pretty useful to the Moose/Moo ecosystem.
An XS implementation of mkopt from Data::OptList would be cool.
Okay, so two ideas is all I have right now.
| [reply] [d/l] [select] |
You might be interested in the recent adoption request, there was another one in February.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
}map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
| [reply] [d/l] |
| [reply] |
| [reply] |