Andrei Zmievski wrote:
> 
> On Sun, 30 Mar 2003, Mike Robinson wrote:
> >  ATM, in_array() takes 2 args and 1 parameter. Adding 1 more
> >  wouldn't hurt, doesn't break BC, and provides some added
> >  usefulness.
> 
> And slows down the inner loop of searching.

Indeed, but it's always a point of contention; the tradeoffs
between performance and feature set. Seems to me that in_array()
no matter was is going to be a bit of a performance hound, so
adding some usefulness isn't going to be that much of a headache.
But if in your opinion the tradeoff is too profound leave it
out, by all means. My point was that of usefulness. I'll leave
the weighting against performance of such to the experts.

 > Can't imagine? Look in the archives. One of the proposals included
> having an option to tell in_array() to move the internal array pointer
> to the found element.

Yeah, things like that are bound to happen, but you can dismiss
them as you see fit as I trust your judgment on stuff like that.
Just didn't want you to dismiss this particular proposal without
someone saying the case-sensitivity addition would be useful,
because it would be.

Best Regards
Mike Robinson



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to