
29 May
2008
29 May
'08
3:33 p.m.
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.