Comment: Re:refining the "show" function (Score 1) on 2010.02.04 13:17
Am I the only one whose OCD goes on overdrive everytime he sees a fixed-function tree traversal sub?
I immediately want to refactor &show into a general traversal sub:
sub traverse(%tree, Traversal $order, &function) {
and a trivial driver:
sub show(%tree, Traversal $order) { traverse(%tree, $order, &take) }
I guess that gets away from keeping the same overall form as the E02 code. Of course, I had the same reaction the first time I read the original code in E02
