Re: [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants
| From: | Pierre Joye | Date: | Tue, 24 Aug 2010 18:00:47 +0000 |
| Subject: | Re: [PATCH] #52563: Adding E_NONE and/or E_EVERYTHING constants | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49495@lists.php.net to get a copy of this message | ||
On Tue, Aug 24, 2010 at 7:47 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> Rhetorical question: Why do we need constants when the values never
>> change? :)
>
> You seriously don't know why one needs constants or don't see a difference
> between constant E_WARNING equal to 8 and constant E_NONE meaning "nothing"
> and equal to 0? How about having constants ONE, TWO, THREE, FOUR? Just in
> case, won't hurt anybody, right? :)
Do we have to stop add constants with obvious numbers? My obvious
number is 42 :)
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org