Re[2]: [Zend Engine 2] ZendEngine2/RFCs/002.txt
| From: | Didier | Date: | Mon, 10 Sep 2001 14:28:05 +0000 |
| Subject: | Re[2]: [Zend Engine 2] ZendEngine2/RFCs/002.txt | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1865@lists.php.net to get a copy of this message | ||
On Mon, 10 Sep 2001 15:49:35 +0200 Harald Radi <harald.radi@nme.at> wrote:
> > I think the 'HTML_Table'-type naming should go the way of the
> > dodo. The 'HTML:Table:Table' naming might make sense -- or
> > rather 'PEAR:HTML:Table:Table'. It's referencing the Table
> > class in the 'PEAR:HTML:Table' namespace.
>
> $table = new PEAR:HTML:Table:Table();
>
> d'oh, -1
>
>
> why should Table.php declare something outside its Table class ?
>
> and if it does, couldn't we simple say that the class definition goes
> into
> the PEAR:HTML namespace and the rest goes into the PEAR:HTML:<classname>
> namespace.
> or isn't it possible to have a class and a namespace with the same name.
I suggest to name namespaces in lower case.
So things for the table to work should go in a pear:html:table package
which content may be used by 10% of the Table class users (expert users).
And the Table class itself, that may be used without reference to
pear:html:table package content, should go in the pear:html package.
Look for example the JTree class which is in the javax.swing package and
the javax.swing.tree that contains utility stuff.
Didier.