François Laupretre wrote on 16/09/2015 14:26:
OK, but, as I already said, an exists() construct would probably be used mostly for arrays elements and properties. Can't we accept this as a more readable alternative to array_key_exists()/property_exists() ?


Yes, we can, and I repeatedly have. With the caveat that, like Perl, we raise an error if you try to use it on a plain variable rather than an array key or object property reference. My only remaining concern is that with that error in place, is "exists" the right name, and if not, what would be better?

Regards,
--
Rowan Collins
[IMSoP]

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

Reply via email to