I've been talking in email with the author of Devel::Refactor, Scott Sotka, and I am trying to add a "rename_subroutine" feature that could be made avaiable in EPIC. This raises some questions:
1. How would you feel about my changing Devel::Refactor so that the current "extract subroutine" was provided by a new object method:
my $refactory = Devel::Refactor->new;
my ($new_sub_call,$new_code) = $refactory->extract_subroutine($new_name,$code_snippet);
2. What would be the best interface to rename_subroutine() for EPIC? I think we want to be able to pass either a single file name, or a directory to search all Perl files. I think it would be nice if EPIC showing a comparison for each file, showing the proposed changes, like a diff, so the user can accept or reject each propsoed change.
< Previous |
Add a Reply
This forum does not allow anonymous participation.
Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.