[haiku-development] Re: RFC: find_directory() API extension

> On November 1, 2013 at 3:00 AM Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> Trivial C++ versions of the two functions could be added, differing only
> in the return parameter -- a BPath*, respectively a BStringList*.

Looks good to me overall, although I really haven't given it that much thought
:-)
Will non-packaged applications only get non-packaged paths this way?

Anyway, the only point I don't like is the suggested C++ API: I would add a
simple class instead (BPathFinder?, or just BPaths) that would allow several
versions of FindPath() where you can omit most of the less often needed
parameters, so that the default use cases (for example, iterating over the
add-on directories) can be done without too many NULL arguments :-)

Bye,
   Axel.

Other related posts: