Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91192 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35826 invoked from network); 11 Feb 2016 06:44:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2016 06:44:27 -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.161.179 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.161.179 mail-yw0-f179.google.com Received: from [209.85.161.179] ([209.85.161.179:36848] helo=mail-yw0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/94-25203-ACD2CB65 for ; Thu, 11 Feb 2016 01:44:27 -0500 Received: by mail-yw0-f179.google.com with SMTP id q190so32739471ywd.3 for ; Wed, 10 Feb 2016 22:44:26 -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=bzgTElTdIVYyjaN0NfO6EH0+PqUiz1UbVC2ylz8BmQs=; b=1Eo+CMwgdgbyU9nY1DcMX8D0kwNy1t74cURwAS/HDqKK+fih9V8zAuqVmuuMw742rY XhA12fL3ecJ7M4doFxzXkQxI5iOhp1MVjvgjryGeED23Fy7sqUJdPeTJtEd4bCO6GNpj mdjDnNb9mHDFE2p7f1om2OTisUBjisSNXoSO15vTnYl0Wr5LnayozBTzPnpKjgBbvT7K 9lVbjcD2gydcWl8h9NHAUAIuH5/KZC/Rz7DxXuWw3xWi1qz+82coIKu/WecSsoEZhR80 RhzDCZrgmW86pjN2vaYNBZ21+hTQ/zPATs90eY5sVH42dTAadx3CJ1uyPKy4UfTjhH4n 0fuQ== 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=bzgTElTdIVYyjaN0NfO6EH0+PqUiz1UbVC2ylz8BmQs=; b=AdAb3l4eME5ZEIDMPaV5flyWCk8Q6cKSw5pgq1ieScNtYW8uZyVpruwVnDfTFl7wEW bkeK+U40Pdo7re/qpiCMISiqnhEdhqwEVi0tySHMX3KnGrSyLCkexxccZuT4gIEPtxKT elCPKXlkd3Q0Dyp9Zug06vcC2z+vpZjZplXimmo9+ok0IvtHDi1HkSUbOOwvZ2KQMsl0 WOpoMQMUB1mFtw5GHsdZVglahEGbPkppq8uDJ7K7tCUGJgKNR1y/OwtDS2LCF7YE93gJ svhfkyGj3ZCAly0W9LRmWD/FhPTim1LMmMmFXlt2GuKg16phZ+GjphJdw7ObTWrT2S/G 6ufw== X-Gm-Message-State: AG10YOQywIAnchZAt9dnw0GSS+4UoQQUcr7WswaDsXExZgen5qG9Ia1s3feSVoEmhjjV+wtZt41CVPF7Knjndw== X-Received: by 10.129.73.3 with SMTP id w3mr11454481ywa.346.1455173064289; Wed, 10 Feb 2016 22:44:24 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.109.22 with HTTP; Wed, 10 Feb 2016 22:43:44 -0800 (PST) In-Reply-To: <56BC29C8.9070308@gmail.com> References: <56A3A01F.1020500@php.net> <56BB4A5F.3060906@php.net> <56BC29C8.9070308@gmail.com> Date: Thu, 11 Feb 2016 15:43:44 +0900 X-Google-Sender-Auth: mOugWcoV4zxlVQfoLeDpjklgwEQ 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 3:27 PM, Stanislav Malyshev wrote: > >> I just added support for '[]' on strings and '{}' to the PR. >> >> Examples : >> >> $string[] = 'a'; // equivalent to : $string[strlen($string)] >> >> $string{} = 'a'; // For consistency > > That's probably not a good idea, and certainly is not good for the RFC - > the patch now does two unrelated things. RFC must maintain consistency across existing features/specifications, IMHO. We already have too many inconsistencies and scattered RFCs will 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 changes to PHP. Aren't we better to have consistent/complete RFCs almost always? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net