On Sat, Jul 18, 2009 at 12:27 AM, Devon McCormick<[email protected]> wrote: > I've recently been playing with a useful utility I'm calling "climb" because > it climbs a directory tree, doing something at each node. > > > I'm interested in comments on a couple of design choices. First of all, is > the name good? The more normal terminology has one "walk" a directory > tree.
I think it's called _descending_ a directory tree because computer scientists have their trees upside down. Or just call it find. > However, if we were to handle the sub-directory navigation more > explicitly, this opens up the possibility of being able to specify either > "depth-first" or "breadth-first" processing of the tree rather than the > implicit "depth-first" approach of recursion. The term "depth-first" also implies a tree growing downward. Ambrus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
