Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70692 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55360 invoked from network); 17 Dec 2013 01:28:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2013 01:28:49 -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:33870] helo=mail-vc0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/46-32483-0D8AFA25 for ; Mon, 16 Dec 2013 20:28:48 -0500 Received: by mail-vc0-f175.google.com with SMTP id ld13so3683324vcb.20 for ; Mon, 16 Dec 2013 17:28:45 -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=uAx2OJwXrxouwBjc+3KzprI3frgkUzsqYEbH7sGvdcA=; b=svLiXGaw8+mAAtXnk/g5Zerx6r9BriJxzaH6xxrNRA9+hL4mLlJ150EnEMdh41ptSC DPpMRQehGqQtRV8UFd3pHuPAl+MGu6LHDzdUm9EGhmwXzAjjoF2XkHEn1vw1E5DwIJwm Wj9bwdR/jB0AlHGZklUgWV9Uw1tzaBZaJyGf1KAN+gAf07DOI3MJEgmq2b5CXNf2jCf5 8b5GFqkOiU0xwQlasLvCUmrG9uBh7PhvRbSWOFaGcr67tMeVtNuZsSlq3LwE5a5dXs6Y g1WaAibPp1tLhMELI3Vg90y08kImnLiyWot6hLXKsxrJcfWu5zFb/xMlAXppMyV6OXd6 OvPA== MIME-Version: 1.0 X-Received: by 10.52.245.132 with SMTP id xo4mr125072vdc.64.1387243725527; Mon, 16 Dec 2013 17:28:45 -0800 (PST) Received: by 10.58.128.33 with HTTP; Mon, 16 Dec 2013 17:28:45 -0800 (PST) In-Reply-To: <52AF96B8.2090009@gmail.com> References: <52AA1649.2090601@ajf.me> <52AAA1EA.7030106@marc-bennewitz.de> <52AF45CC.10604@gmail.com> <52AF8E29.3020400@ajf.me> <52AF96B8.2090009@gmail.com> Date: Tue, 17 Dec 2013 09:28:45 +0800 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a1135ec227a215c04edb0d94e Subject: Re: [PHP-DEV] [PROPOSAL] Alphanumeric decrement From: tjerk.meesters@gmail.com (Tjerk Meesters) --001a1135ec227a215c04edb0d94e Content-Type: text/plain; charset=ISO-8859-1 On Tue, Dec 17, 2013 at 8:11 AM, Rowan Collins wrote: > On 16/12/2013 23:35, Andrea Faulds wrote: > >> >> >> On 16/12/13 23:33, Tjerk Meesters wrote: >> >>> >>> I would love to completely eradicate it, but I also realize that there's >>> existing code using it, such as: >>> >>> >> Before writing the -- support patch, I wrote a patch to remove ++ >> support. There were a few tests that relied on the feature which required >> rewriting, so I'm quite worried about what'd happen if we removed it. Maybe >> in 6.0? >> >> > Genuine question: what is the actual case for removing the current > operator in favour of a function? Is it to make a clearer separation > between string and numeric operations? Or that it feels like a function > should have been created rather than overloading the operator in the first > place? > For the sake of clarity I should reiterate the purpose of my patch; it's to disambiguate the behaviour of ++ across the different data types by treating the operands as numbers; this also means deprecating the current ++ behaviour on strings and instead moving the functionality under "string functions". So to answer your question, a bit of both but - personally - more of the latter. > Regardless of deprecation period, this is one of those things that is > quite hard to track down - you can't just grep your codebase for instances > like you can with a function being removed. Indeed, it has the potential of dragging on like the deprecation of `register_globals` or `magic_quotes` did. Given the current state of error logging, this probably remains the biggest risk. > > Regards, > > -- > Rowan Collins > [IMSoP] > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -- Tjerk --001a1135ec227a215c04edb0d94e--