Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56680 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21954 invoked from network); 30 Nov 2011 09:50:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2011 09:50:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:65284] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/E0-17272-74CF5DE4 for ; Wed, 30 Nov 2011 04:50:00 -0500 Received: by vbbfd1 with SMTP id fd1so187406vbb.29 for ; Wed, 30 Nov 2011 01:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=AL1ObvvRU9Qgp4kcAsIVcomJ03xM4HmJblB5PqOb900=; b=Ao4fgyfzhpjl930IBroMDgVkHIRKOfBrzo4zULgt9/oQOVsVc9EaJBZq/NXhZLRqoR 59US+2IVV5R0/y7xixra9g0Z8eVkCQBLsEqTU2m9xqexMiLRLXBvaSCP8UaGXF3QcThn OFVq18Tb34MtbUYuAhZaJxnjwT+fxxNORk1+4= Received: by 10.52.36.109 with SMTP id p13mr1381630vdj.59.1322646596193; Wed, 30 Nov 2011 01:49:56 -0800 (PST) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.220.108.7 with HTTP; Wed, 30 Nov 2011 01:49:35 -0800 (PST) In-Reply-To: References: Date: Wed, 30 Nov 2011 17:49:35 +0800 X-Google-Sender-Auth: odavooRWU-xyVMZQDx9bhnWu7so Message-ID: To: Peter Cowburn Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Const array/string dereference From: laruence@php.net (Laruence) Hi peter: On Wed, Nov 30, 2011 at 5:23 PM, Peter Cowburn wro= te: > Hi Laruence et al. > > On 30 November 2011 06:06, Laruence wrote: >> Hi: >> >> =C2=A0 base on feature request: https://bugs.php.net/bug.php?id=3D60408 = , I >> wrote a patch to make php support const array/string dereference >> >> =C2=A0 rfc is here, https://wiki.php.net/rfc/constdereference >> >> =C2=A0 any opinions? > > Could you pad out the RFC a little, it is very sparse in information > at the moment. What is the rationale behind this new feature? "A small > change to make things consistent." Consistent with what? If you want Constitent with array deference, like some other languages :) > to be consistent, where is the {$i} support (although the same can be I coud add '{' '}' support if we search a consensus that it is need. but since array dereference didn't do that, so neither do I. > said for function array dereferencing with curly braces)? > > I can't comment on the patch/tests as your site seems to be > unavailable at the moment. thanks to damned chinese great fire wall.... I uploaded the patch to the bug report entry :) > >> >> thanks >> >> -- >> Laruence =C2=A0Xinchen Hui >> http://www.laruence.com/ >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> thanks --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/