Re: [PHP-DEV] API Thoughts? From: Andrei Zmievski (andrei <email protected>)
Date: 08/26/01

At 07:29 PM 8/26/01 -0400, Sterling Hughes wrote:
> Hey,
>
> Currently working on the Binary Tree implementations for the ADT
> extension and was wondering what people thought as more intuitive,
> something like:
>
> $tree = tree_new(AVL_TREE);
> tree_insert($tree, $element, "compare_func");
> // ...

I like this better, but please prefix constants with "ADT".

-Andrei

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>