Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91197 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54847 invoked from network); 11 Feb 2016 11:13:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2016 11:13:13 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.182 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.182 mail-yk0-f182.google.com Received: from [209.85.160.182] ([209.85.160.182:33583] helo=mail-yk0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/B6-25203-9CC6CB65 for ; Thu, 11 Feb 2016 06:13:13 -0500 Received: by mail-yk0-f182.google.com with SMTP id z13so19245325ykd.0 for ; Thu, 11 Feb 2016 03:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=zHeyujAi7pBNEca42ajE4urt/Cny1yUWxTSZSULw6xk=; b=cVmMWLyZ09E6mv174/S9LxELoy/hnJIUd6CqEUmKrAYtdApO07Lht8Cq3KbsUpZDPN /WKSsJegDWqr8FDmLZwrUf2/ZfFDNsJGTLxa6w7UKhyM7usQ7U68nXpgLD6/TEwWAwwg /zUnWsiLpfEN+nEi62fN0BiZBI1cRtVymSysa0x9oKxTlxZIRhjy77i6BcOJ1a1LexE8 Lv3oaGNHwCf9KrVOurKiYoUjEXempHBQ2UOpxOkNTWH/6LdKAdO6yyTLFwGDY+46n8Cf HmUHJ46ph9Mm1PjMaornYGkJLPzZKvpZyuFgPnhPkuRGNVP55zdoAnoFBXjBRBMs8BjI 2g8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=zHeyujAi7pBNEca42ajE4urt/Cny1yUWxTSZSULw6xk=; b=C5FvdFJmOgHc26N2s09bBtuBCMrJ2/N1TaRoQ36bFgP/Qw3g+3dqiwBA99VHlgvsjU pX2bkepqgt9+M4xd3keibJ0XUIYqVvVONEDGz5NtRarQ3l2qlrKK5p5Vt7FoDs9S6XSj zlAxkKPU+ZBoSdqrhPOe3MYLodcTmEarofRzrOLIG0aGJe+9wyOYEWvLfESYkxidrCzb L5k/avQ1L//KkB5aOidA2OORCVj/Su0eV9bl/7lPEz81evoZXLkppZPO5DJ9tPIjJ8+u d20pMEovvqg6vi0o1ZkVpsTwObH+rTxH0pRxNyUc1ojMJLOtbBzNaBSS83eob++YpudX /xjA== X-Gm-Message-State: AG10YORMY4VtUNtxSgd98RKjcmkUFDrFn4r9mtPRT2kS2e8JzYFfbB6mFA5qc2MmOPLSEilGGkh9mJD3xduWMg== X-Received: by 10.37.98.4 with SMTP id w4mr23548465ybb.10.1455189190521; Thu, 11 Feb 2016 03:13:10 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.109.22 with HTTP; Thu, 11 Feb 2016 03:12:31 -0800 (PST) In-Reply-To: <56BC3372.1010308@gmail.com> References: <56A3A01F.1020500@php.net> <56BB4A5F.3060906@php.net> <56BC29C8.9070308@gmail.com> <56BC3372.1010308@gmail.com> Date: Thu, 11 Feb 2016 20:12:31 +0900 X-Google-Sender-Auth: 6e-8b_cnbOuI-cKcbtoyTQfx1us Message-ID: To: Stanislav Malyshev Cc: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Generalize support of negative string offsets From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Stas, On Thu, Feb 11, 2016 at 4:08 PM, Stanislav Malyshev wrote: >> RFC must maintain consistency across existing features/specifications, > > There's a lot of things people call "consistency", apparently. I don't > see inventing new syntax for doing concatenation to have anything to do > with consistency. > >> make things worse certainly. Making patch and/or RFC simple is not the >> reason why we have RFC, but to have full featured/discussed/consistent > > To have simple patch is not really why we have RFCs, of course. But > having simple (or not overly complex) RFC is a sign of a good RFC. On > the contrary, overly complex and convoluted ones make it hard to review > them and usually lead to unintended consequences and mistakes since it > is hard to predict the outcomes in such complexity. > >> Aren't we better to have consistent/complete RFCs almost always? > > Since everybody defines "consistent" to mean pretty much anything they > want, there's no answer to this question. Since Francois removed the section, it's not important for this discussion anymore. Anyway, all of us know that main source of complaints about PHP is lack of consistency. Inconsistent APIs across modules are acceptable. It's modules after all. However, basic language constructs like [] and {} are better to have predictable/consistent behaviors. i.e. how it works, raised errors. This RFC improves inconsistent behaviors a lot. Why not to add $str{} = 'string'? It's not complex nor BC as it raises syntax error currently. It does not worth the effort having other RFCs for - $str{} = 'string' - error level/message tweaks. i.e. Raise the same error for similar situations. - and so on. I agree small changes are easier to review, but it may leave lots of obvious inconsistency in PHP. We have too many of them already. Making RFC and pass the vote is not easy task. Authors may not have time for RFCs for clean ups. Every each one of RFC should try to reduce number of obvious inconsistency as much as possible, IMHO. Otherwise, we end up with increasing them. Code review being a little more difficult is not too important issue, but leaving behind obvious inconsistency is. Let's concentrate improvements to be complete. We have plenty of time before 7.1 release. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net