On 1 October 2010 06:26, Stas Malyshev <smalys...@sugarcrm.com> wrote: >> Can we make it an operator-like (is_a for example) instead? It could >> be more efficient. > > Operator has a downside that you can't pass it as a parameter. We could have > something like <=> (spaceship operator!) or even cmp though :)
Yeah, I think if it's going to be available, it has to be as a function so it can be used as a callback. I can cook up a patch for an operator version in addition to the functional version, although I don't know that the performance benefit would necessarily be worth the extra complication (or potential confusion for users of having two ways to skin the same cat). Adam -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php