Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68191 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79723 invoked from network); 19 Jul 2013 09:39:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2013 09:39:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=peter.e.lind@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=peter.e.lind@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.45 as permitted sender) X-PHP-List-Original-Sender: peter.e.lind@gmail.com X-Host-Fingerprint: 209.85.215.45 mail-la0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:34029] helo=mail-la0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/30-13120-06909E15 for ; Fri, 19 Jul 2013 05:39:45 -0400 Received: by mail-la0-f45.google.com with SMTP id ev20so1537715lab.18 for ; Fri, 19 Jul 2013 02:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=hcX3oJVI/25XgClJQb+69ZLgSQ/EkYHCx9Yo6Nzmq7E=; b=aw+HtFQ/zlnOPFsnYY6jepMkVc4qRcuB3uHs+aP6zmEbkpI/e5tM0Vm8uUkfM6dj/E jcjGB7m91GrRhIiowG5kSaWgNSpzQphqqo0Bj/TJj5ZR9LLgURPwFHQoRKB/5LsfW5tP vIEClThqTpMYkZ1ZyJFipEC0cAufx+1J8gvUOPxS50FKydkjrvarVC0SE/CKItJj7nLs Ib9zRKhI38Awj8CBU2XhUJpO3cmhD1YciNUDZB0IA8bK/Rlng/WqLk8YAY5SvgxbrwOO Okas2a+jkYP3TxPelHvnhjGWyNnIBg6aoy9s4rmedrsScbfgV1v+FZt2MxpWr9A6oIzF YKvA== X-Received: by 10.112.97.209 with SMTP id ec17mr7204538lbb.10.1374226295103; Fri, 19 Jul 2013 02:31:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.169.67 with HTTP; Fri, 19 Jul 2013 02:31:15 -0700 (PDT) In-Reply-To: References: <-6008161650538629327@unknownmsgid> Date: Fri, 19 Jul 2013 11:31:15 +0200 Message-ID: To: Dan Cryer Cc: Yasuo Ohgaki , Mateusz Kocielski , Xinchen Hui , Chris London , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1133f17a29262b04e1d9fe35 Subject: Re: [PHP-DEV] Feature Proposal: Allow letter decrementing From: peter.e.lind@gmail.com (Peter Lind) --001a1133f17a29262b04e1d9fe35 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 19 July 2013 11:18, Dan Cryer wrote: > What's the intended use case for string increment / decrement? > > Personally, I instantly think of mirroring spreadsheet columns - works quite well in that context. > It just seems like madness to me, using mathematical operators with > strings, producing seemingly arbitrary results in some circumstances (C -= > > B -> A -> NULL / False ?). > > Throw a warning and don't decrement A/a any further - that's not arbitrary. > Also what happens in other languages? Take for example German, in which = =C3=9F > comes after S, =C3=9C after U, and so on. > > Nothing, works purely on ascii, as is currently the case. Perl handles other character sets though - see the link I posted for details on how. Regards Peter --=20 WWW: plphp.dk / plind.dk CV: careers.stackoverflow.com/peterlind LinkedIn: plind Twitter: kafe15 --001a1133f17a29262b04e1d9fe35--