Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72621 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26880 invoked from network); 15 Feb 2014 02:12:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2014 02:12:24 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.175 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.220.175 mail-vc0-f175.google.com Received: from [209.85.220.175] ([209.85.220.175:40434] helo=mail-vc0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/B2-34645-70DCEF25 for ; Fri, 14 Feb 2014 21:12:23 -0500 Received: by mail-vc0-f175.google.com with SMTP id ij19so9968634vcb.34 for ; Fri, 14 Feb 2014 18:12:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=h0oHvLEE1PqhndWGvi2RmnUoLiI0ZRTmS6JdGcO2JQU=; b=hzyl031jK+b931ZrRWRDJz/Xt+TekymiJKdV/gC4OSP7CE+BXOErUsWDNTLxHHc1S6 aNARyriwBb/BBmgN9iAU9cR3wV9eSTkHHiK42FP+hJ8VwhTVddQL9S1NNBq8Vm7n4Ucc zGn3EPpyzLRqM3HjvxanoMOFD1rwTt+iHVT7aYagdNPUvI25F3NpJv18TyDd8er+eSQ2 78rbUPRk5qqyK+wzQomG+Wp+TFQeM575VYoTn6Qwwh+drHMfxw82jO8NiXvsj2UP5leK 3rxUApO0PZn5pWEStbwgtzLzDf96yrkNAeqAonYegGwnQpcuvUddXa4R65vwXWSIcfdJ rRXQ== MIME-Version: 1.0 X-Received: by 10.52.251.232 with SMTP id zn8mr2865435vdc.41.1392430339487; Fri, 14 Feb 2014 18:12:19 -0800 (PST) Received: by 10.58.133.229 with HTTP; Fri, 14 Feb 2014 18:12:19 -0800 (PST) Date: Sat, 15 Feb 2014 10:12:19 +0800 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a11340450c27e6b04f268732e Subject: [rfc] normalize increment and decrement operators From: tjerk.meesters@gmail.com (Tjerk Meesters) --001a11340450c27e6b04f268732e Content-Type: text/plain; charset=ISO-8859-1 Hi all, Following the earlier discussion of adding decrement for strings to complement the existing alphanumeric increment feature, I've written a proposal to normalize the behaviour across boolean and null values. https://wiki.php.net/rfc/normalize_inc_dec Based on some earlier comments, boolean and null values can be treated in two distinct way, both of which are demonstrated in the rfc; I'm hoping that before voting takes place we can eliminate one voting option altogether. It also aims to deprecate string-based increments using `++`; instead, it would introduce `str_inc()` and `str_dec()` as a regular function. Let me know your thoughts. -- -- Tjerk --001a11340450c27e6b04f268732e--