
Marcus Lindblom wrote:
John Femiani wrote:
How about deprecating branch_path and using 'head', and deprecating 'leaf' in favor of 'tail'? This replaces tree terms with list terms, since a path is a list.
The way I'm used to name lists (from Haskell and others), is that a list of x has a head of type x and a tail of type 'list of x'.
Your version would turn that around, which would confuse me.
I have no problem in seeing leaf() as the last element in the path (which is a list of names) and it's short and sweet. If one can accept that the path is a different concept from the file entry, this works very well.
I think there are valid arguments for and against, and I'd hate to have this switched at this moment, when it's been used for quite a while by many apps. There are too many things changing from one boost release to another already, so you'd better make a good argument and have a clear concensus. (We're getting dangerously close to the bike-shed... :)
My 0.02€.
Cheers, /Marcus _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
I also assumed leaf -> head and branch_path -> tail :-) Maybe we should just drop the matter and live with branch_path and leaf. (Even if I really would prefer branch_path -> parent_directory_path) --Johan