hi all,

we briefly covered damian's talk about rewriting perl5 modules in perl6
which i saw at oscon. i recalled one module was IO::Prompter and we
looked at the p6 version. we should have also looked at the p5 version
for a comparison. in the p5 code look for the sub _decode_args and see
how long and full of code it is. the p6 version subsumes all of that
into its signature and it is much shorter and cleaner. in the p6 version
the prompt sub does this for you.

http://cpansearch.perl.org/src/DCONWAY/IO-Prompter-0.001001/lib/IO/Prompter.pm
https://github.com/pmichaud/io-prompter/blob/master/lib6/IO/Prompter.pm

uri

-- 
Uri Guttman  --  uri AT perlhunter DOT com  ---  http://www.perlhunter.com --
------------  Perl Developer Recruiting and Placement Services  -------------
-----  Perl Code Review, Architecture, Development, Training, Support -------

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to