Req #61021 [Opn->Wfx]: chaging keyword 'empty' to 'isempty'
| From: | aharvey@php.net | Date: | Thu, 09 Feb 2012 01:31:06 +0000 |
| Subject: | Req #61021 [Opn->Wfx]: chaging keyword 'empty' to 'isempty' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-167324@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61021&edit=1
ID: 61021
Updated by: aharvey@php.net
Reported by: milevyo at gmail dot com
Summary: chaging keyword 'empty' to 'isempty'
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: PHP options/info functions
Operating System: all
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Given the massive backward compatibility break this would entail for people using
empty(), not to mention the many hits on Koders for PHP code that has declared a
function called isempty(), I don't think there's any feasible way this could be
done.
Previous Comments:
------------------------------------------------------------------------
[2012-02-09 01:01:33] milevyo at gmail dot com
Description:
------------
if (empty($var)){
...
}
this has an impression that we are trying freeing up $var and making it 'NULL'
it sound like 'DoEmpty()' or 'SetEmpty()'
but what this function realy is:
isEmpty()
the script should looks like this:
if(isempty($var)){
...
}
because IMHO 'do','set' and 'let' are optional prefixes, which let you
understand that this function is an order (a command)
but not the prefix 'is' which is if we can say a test prefix.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61021&edit=1