From: Beman Dawes (bdawes_at_[hidden])
Date: 2008-05-29 11:33:27


Beman Dawes wrote:
>...An
> alternative set I'd be comfortable with would be tail() for the current
> leaf() and head_path() for the current branch_path().

Hum... After sending that, I read Johan Råde's "parent" suggestion.

I really like parent_path() for the current branch_path().

That leaves leaf(). tail() is arguably slightly better, but not by a
lot. Other possibilities:

      leaf() // cryptic
      tail() // slightly better
      right() // cryptic
      rightmost() // better
      rightmost_name() // very explicit, but longish

--Beman

PS: In any event, the library will retain the old names as synonyms, so
no existing code will break. Semantics remain unchanged.