Re: RFC: ppath(3): property list paths library

2010-11-05 Thread David Young
On Wed, Nov 03, 2010 at 05:57:39AM +, David Holland wrote: On Mon, Nov 01, 2010 at 08:00:09PM -0500, David Young wrote: I'm working on a library called ppath(3) for making property lists more convenient to use in the kernel. With ppath(3), you refer to a property to

Re: RFC: ppath(3): property list paths library

2010-11-05 Thread David Young
On Wed, Nov 03, 2010 at 09:28:11AM +0100, Martin Husemann wrote: Let me play devils advocate for a minute: If we create a library with such a wiered API that we need another library to make use of that libary easy - maybe we are abusing that libary or we should reconsider its API? I expect

Re: RFC: ppath(3): property list paths library

2010-11-05 Thread David Young
On Tue, Nov 02, 2010 at 01:10:21PM +0100, Marc Balmer wrote: Am 02.11.10 02:00, schrieb David Young: I like the idea. Would it be possible to simplify the API, e.g. use some kind of path expression in ppath_get_string() directly, without having to setup things with ppat_create() first?

Re: RFC: ppath(3): property list paths library

2010-11-05 Thread Masao Uebayashi
On Fri, Nov 05, 2010 at 02:24:16PM -0500, David Young wrote: On Wed, Nov 03, 2010 at 05:57:39AM +, David Holland wrote: On Mon, Nov 01, 2010 at 08:00:09PM -0500, David Young wrote: I'm working on a library called ppath(3) for making property lists more convenient to use in the

Re: RFC: ppath(3): property list paths library

2010-11-03 Thread Martin Husemann
Let me play devils advocate for a minute: If we create a library with such a wiered API that we need another library to make use of that libary easy - maybe we are abusing that libary or we should reconsider its API? This is one of the ocassions where I would love to use C++ and templates in the

Re: RFC: ppath(3): property list paths library

2010-11-03 Thread David Holland
On Wed, Nov 03, 2010 at 09:28:11AM +0100, Martin Husemann wrote: This is one of the ocassions where I would love to use C++ and templates in the kernel ;-} I think what you mean is that you'd like to have a language that has some kind of sane parameterized types... :-/ -- David A. Holland

Re: RFC: ppath(3): property list paths library

2010-11-02 Thread Marc Balmer
Am 02.11.10 02:00, schrieb David Young: I'm working on a library called ppath(3) for making property lists more convenient to use in the kernel. With ppath(3), you refer to a property to read/write/delete in a property list by the path from the list's outermost container. Comments welcome.

Re: RFC: ppath(3): property list paths library

2010-11-02 Thread David Holland
On Mon, Nov 01, 2010 at 08:00:09PM -0500, David Young wrote: I'm working on a library called ppath(3) for making property lists more convenient to use in the kernel. With ppath(3), you refer to a property to read/write/delete in a property list by the path from the list's outermost

RFC: ppath(3): property list paths library

2010-11-01 Thread David Young
I'm working on a library called ppath(3) for making property lists more convenient to use in the kernel. With ppath(3), you refer to a property to read/write/delete in a property list by the path from the list's outermost container. Comments welcome. The latest source is at