On Sun, Aug 26, 2001 at 07:29:59PM -0400, Sterling Hughes wrote:

>     Hey,
>     extension and was wondering what people thought as more intuitive,
>     something like:
>     $tree = tree_new(AVL_TREE);
>     tree_insert($tree, $element, "compare_func");
>     // ...

I prefer this notation.  There's more room for future expansion
without encroaching on namespace.

I think it would be neat to be able to do this, though:

    $tree = new Tree(AVL_TREE);
    $tree->insert($element, 'compare_func');

But such a wrapper shouldn't be too difficult to write.
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to