Re: [PROPOSAL] Alphanumeric decrement

From: Date: Fri, 13 Dec 2013 07:09:19 +0000
Subject: Re: [PROPOSAL] Alphanumeric decrement
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-70618@lists.php.net to get a copy of this message
On Thu, Dec 12, 2013 at 9:58 PM, Marc Bennewitz <php@marc-bennewitz.de>wrote: > Hi > > Decrementing "a" to a number isn't a good idea because on incrementing > again you will increment the number and not go back to "a". > Why not just have "a" decrement to an empty string (i.e. "") and an empty string increment to "a"? Then a decrement on an empty string could trigger a warning and remain empty. That way, we won't have situations where decrementing from "a" and incrementing back would output a number. --Kris

« previous php.internals (#70618) next »