Re: Conf: argue !

Manuel Holtgrewe <[email protected]>
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
Hi

<snip>

> Ergo. If we walk from xml -> confPath then non-unique paths will pop up.
> Ergo. an unique confPath cannot be guaranteed.

I think you have a misconception of the configuration parsing. In the 
example, you would create an array definition:

   'plugins_dir' => array(
       'foo',
       'bar',
    )

And PHP would automatically translate that to

   'plugins_dir' => array(
       0 => 'foo',
       1 => 'bar',
    )

So you have unique paths.

<snip>

> My preferences?
> 
> (1) Yacc. Looks like hacking.
> 
> (2) Elegant. Makes Path being non-unique (in the database only).
> 
> (3) Possible. Powerfull. Introduces customized data format in the 
> database.


1 is seems good to me. We only have to forbid numeric keys for other 
things than plain arrays then. I dislike 2 and 3 is hacky.


Manuel
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.