Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70618 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97929 invoked from network); 13 Dec 2013 07:09:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Dec 2013 07:09:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.180 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.214.180 mail-ob0-f180.google.com Received: from [209.85.214.180] ([209.85.214.180:33465] helo=mail-ob0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/3A-32587-1A2BAA25 for ; Fri, 13 Dec 2013 02:09:21 -0500 Received: by mail-ob0-f180.google.com with SMTP id wo20so1559630obc.39 for ; Thu, 12 Dec 2013 23:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kpW21+6dYAEM2PYeAzOjHRv7BfIagItgzi0USjTiCvM=; b=g/Bx7jAHz2Q0hMZb5EDSLVNJOBO+nMg5KmP3+edOVMIaCnYTedxnft/cWvtOP4UDaE tV3/3tuMzEMKk8CmtWdXiS+SKQU91LTDAVkz62WxdKcUC3IQ22jRUEQYTa291//8fYVk 5Rt6opK29I0eiBj+S1BswRXirwMQZg+AcLUSfDVZIb87fiSjIly+pn8u6od77eSpDjIY ni+RIc728Vj6/KysSQIcdL/XcJGaR2EhcCGpRzsh/ScnmowE5GG97VBY9vT3Q9AziYKB tF8+W3LVYfjZpEphd6BzX1qHixiWsTAfUFwNs086a838KkDh7f/pL6+ZIreIqynfcjjF 5HoA== MIME-Version: 1.0 X-Received: by 10.60.42.104 with SMTP id n8mr591601oel.65.1386918559094; Thu, 12 Dec 2013 23:09:19 -0800 (PST) Received: by 10.182.221.170 with HTTP; Thu, 12 Dec 2013 23:09:19 -0800 (PST) In-Reply-To: <52AAA1EA.7030106@marc-bennewitz.de> References: <52AA1649.2090601@ajf.me> <52AAA1EA.7030106@marc-bennewitz.de> Date: Thu, 12 Dec 2013 23:09:19 -0800 Message-ID: To: Marc Bennewitz Cc: PHP internals list Content-Type: multipart/alternative; boundary=089e0149ca5c0c1c8b04ed652495 Subject: Re: [PHP-DEV] [PROPOSAL] Alphanumeric decrement From: kris.craig@gmail.com (Kris Craig) --089e0149ca5c0c1c8b04ed652495 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Dec 12, 2013 at 9:58 PM, Marc Bennewitz 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 --089e0149ca5c0c1c8b04ed652495--