
on Wed May 21 2008, "Zach Laine" <whatwasthataddress-AT-gmail.com> wrote:
On Wed, May 21, 2008 at 1:19 AM, David Abrahams <dave@boostpro.com> wrote:
[snip]
Paths don't have leaves. They have beginnings, endings, and middles. They are linear.
This sheds their context. The linear sequence does not exist in a vacuum. It is a sequence of nodes that defines a path through a filesystem tree. When I think of a filesystem, I think of it as (a) root node(s), interior nodes, and leaf nodes. The fact that I'm only looking at a subset of them when dealing with a given path does not change what kind of node each is conceptually.
I think that proves my point. On a Unix system "/usr" is never a leaf in the filesystem. Boost.Filesystem can call it a leaf, though.
In short, I like "leaf()".
I don't understand why. -- Dave Abrahams BoostPro Computing http://www.boostpro.com