Re: Allow null variables to be decremented
| From: | Côme Chilliet | Date: | Wed, 19 Feb 2020 14:52:25 +0000 |
| Subject: | Re: Allow null variables to be decremented | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108666@lists.php.net to get a copy of this message | ||
Le mardi 18 février 2020, 20:27:37 CET Rowan Tommins a écrit :
> With booleans, there is at least a consistency between those two
> operators, even though it's consistently weird. There's definitely a
> strong case for making them match +=1 and -=1 though.
Is there any reason the engine is not running the same code or even compiling to the same opcodes
$a++ and $a+=1?
If it should never differ, why is it not the same operation?
--
Côme Chilliet
FusionDirectory - https://www.fusiondirectory.org