Re: [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants
| From: | Alexey Zakhlestin | Date: | Tue, 24 Aug 2010 18:23:04 +0000 |
| Subject: | Re: [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49498@lists.php.net to get a copy of this message | ||
On Tue, Aug 24, 2010 at 10:14 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> use an E_ constant with error_reporting" and not have the current
>> situation where sometimes you use a constant (or constants) and
>> sometimes you use a bare number, depending on what you want to
>> achieve.
>
> What's wrong with using 0? 0 means "nothing", how hard is that? `
The only downside is, that programmer will need to know, that E_*
constants do mean numbers.
With adding E_NONE this knowledge would be unnecessary and people
would be able just to think in terms of abstract "symbols"
--
Alexey Zakhlestin
http://www.milkfarmsoft.com/