NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Inlining (Score:1)
I'm not sure I said elegant code so much as I said "proof of concept". :) Then again, it was pretty hard to hear over the Elvis-impersonator singing the Cure, Nirvana, and Louis Armstrong covers.
Re:Inlining (Score:2)
Re:Inlining (Score:1)
I didn't get quite that far, but that was my plan. It works (er, segfaults) by grabbing the opcodes to the inlinable sub, then splicing them in to the calling sub.
The drawback, as I explained to Ovid, is that the worst overhead appears to be entering and leaving scope, not the actual function call.
Refactoring tools (Score:2)
Re:Refactoring tools (Score:1)
Catch is, by itself 'extract method' isn't actually that useful... Ah well.