#TodayIAchieved a faster implementation of named parameters to extended subroutines via my `Sublike::Extended` #perl module.
Not yet on CPAN until I've given it some more thorough testing to satisfy myself that it's stable and robust, but already it's showing good signs. Subs written using this are now over 30% faster than the equivalent plain perl approach using a slurpy hash.
The speed benefit on top of the existing "it's much shorter and neater to read" that it already had.
Corwin Brust reshared this.
nigelsezyarr
in reply to Paul Evans • • •I really should start using this at work. I know we don't check our named parameters that closely.
Thanks for all your work, eh! 😃
Paul Evans
in reply to nigelsezyarr • • •@nigelsezyarr It's on CPAN at
https://metacpan.org/pod/Sublike::Extended
Hopefully in a few days I'll have the new faster version up too
Sublike::Extended
MetaCPANPaul Evans
in reply to nigelsezyarr • • •Aaron Priven
in reply to Paul Evans • • •Paul Evans
in reply to Aaron Priven • • •@aaronpriven Right; Kavorka was one of the inspirations, along with a few other CPAN modules, for the named parameter design. It's being looked at in this upcoming PPC:
https://github.com/Perl/PPCs/pull/54
I've been experimenting with the design in `Sublike::Extended` but hopefully soon I'll start moving it into core proper.
Signature named params by leonerd · Pull Request #54 · Perl/PPCs
GitHub