Re: ADT in PHP - where do we want them?
| From: | Sebastian Bergmann | Date: | Wed, 17 Jan 2001 18:38:26 +0000 |
| Subject: | Re: ADT in PHP - where do we want them? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-44406@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
> What exactly do you have in mind here? A defined datatype so traversal
> functions could also be built in?
Linked Lists for one thing can be easily implemented in a few lines of
code in PHP itself. But the situation is different for tree, especially when
you want to handle tree with an arbitrary number of children per node.
Sure, even this can get done in PHP itself, too, butI doubt that it would
be as efficient (and fast) as a implementation of that data structures in C.
--
sebastian bergmann e-mail : sb@sebastian-bergmann.de
homepage : http://www.sebastian-bergmann.de
make a gift : http://wishlist.sebastian-bergmann.de
measure the usability of your web application -> http://phpOpenTracker.de