I get that a lot of people think that the only way forward with PHP is
fully typed, strict checking and blocking anything that may be deemed to
be risky. However PHP7 has not yet dropped the simple object-less style
of programming that it originally developed from. That is why tidying up
a simple procedural style of working still has a place. The debate on
'exists()' or to give it a tidier title 'variable_exists()' is more
about just how much of a procedural style of programming remains in PHP
in the future. Yes there are other ways of working, and using
associative arrays direct gives a different set of tools, which then
morph again in objects, and it's the piecemeal way things have been
bolted on which has caused that so that the 'simple' functions have
fallen through the gaps?

array::exists() and object::exists() would have been tidy extensions to
exists() if one was starting again with a clean sheet, but we have what
we have and procedural PHP is still integral so can we please just clean
up the gaps rather than pushing 'more modern' ways of working.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

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

Reply via email to