Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75150 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38433 invoked from network); 30 Jun 2014 19:17:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2014 19:17:32 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.179 as permitted sender) X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.217.179 mail-lb0-f179.google.com Received: from [209.85.217.179] ([209.85.217.179:47338] helo=mail-lb0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/F2-19922-8C7B1B35 for ; Mon, 30 Jun 2014 15:17:30 -0400 Received: by mail-lb0-f179.google.com with SMTP id z11so6252902lbi.10 for ; Mon, 30 Jun 2014 12:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to; bh=cPCRXeBw84XcFYoA3g06GuYROM2f9QKsfTIdlut/nso=; b=t5yZGOirfDe+Vl9TMPuUDvQ/VCSb2R/lnMNgz33JTVhyQJZNTAut+4wYPArFSoCZbC ZQtPcmzhVUEeA/yu6Dp68oncYVoCQuMi3QkyajSbtmL5tgIFoUZvcAPbIfnBdq/trjgc r34DlsOFs9gCkrnAORWbG5NNVB5qXSXeUtTp7AX8uEsvrFj8ertvuJGJQVIAg6t++hYs ogVx/LSYOX0ACVj5MFAWQrkDVH3e3W87MEVZA2kiQZcV86XhWbmvhYmd37rJ28I11EhQ 85GAa2Mgxm8xzzmGiIT1PPRlt7O2wGViE/KmQb3P8X+stUbjpwG2iEW30d3NxPPKFrSs DUnQ== X-Received: by 10.112.62.231 with SMTP id b7mr3056643lbs.65.1404155845274; Mon, 30 Jun 2014 12:17:25 -0700 (PDT) Received: from [10.0.1.8] ([46.252.161.106]) by mx.google.com with ESMTPSA id 4sm16629954lbq.15.2014.06.30.12.17.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 12:17:24 -0700 (PDT) Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Content-Type: multipart/signed; boundary="Apple-Mail=_821A23BB-CDB3-4093-A0E4-7FA068DABA45"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.1 (8a210ce+) In-Reply-To: Date: Mon, 30 Jun 2014 23:17:11 +0400 Cc: Bob Weinand , Xinchen Hui , David Soria Parra , Julien Pauli , PHP Internals Message-ID: <7CF0F7C0-028D-4826-989A-D63DEFB7D92A@gmail.com> References: To: Dmitry Stogov X-Mailer: Apple Mail (2.1878.2) Subject: Re: [PHP-DEV] Wired constant expression syntax and bug From: indeyets@gmail.com (Alexey Zakhlestin) --Apple-Mail=_821A23BB-CDB3-4093-A0E4-7FA068DABA45 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 30 Jun 2014, at 23:06, Dmitry Stogov wrote: > I'm wondered why you introduced this wired syntax in PHP-5.6. > > class FooBar { > const bar =3D ["bar" =3D> 3]["bar"]; > } > > It wasn't a part of RFC, it wasn't covered by tests, and it actually > doesn't make a lot of sense. May be it's better to remove it? Does it harm? This example doesn=92t make much sense, but intention of such code is = unambiguous. It is clear what should happen. So, I=92m +0 to leave it if tests are written. -- Alexey Zakhlestin CTO at Grids.by/you https://github.com/indeyets PGP key: http://indeyets.ru/alexey.zakhlestin.pgp.asc --Apple-Mail=_821A23BB-CDB3-4093-A0E4-7FA068DABA45 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBCgAGBQJTsbfBAAoJEMkJcRxZdR27S10IAJacH6t7dVC5mNk2wBwGpT7e F/hA9B4w5Kab2Yv4xqsON00NJcWrhe7t8ARMSGAxmLnqOQDRhrxFw//JDikhLz+Y bXr4V5H+m9ht5VftER+Yv+2Bc/UpyDTQisLrgFbFSCWXcbdfUe3Sm60stnk1wgLW MhByPwtJbln/kthWP5+SAw9hVLhzcfGyZfAQdGVitgxCp6YFdUCUY8JHlvpyWFUu gZbgHG/31+5N7/DgSgc1jXw5lSlr7kt+FJ/OCJIpF7DbcKFlzGmS+EcWnMIE3Ksl VZrmJdORXM0R9FftCtX9fI1qdCVVnloieKsU20uLXznMEEZQwvqP1PkbutXcGdk= =vEFi -----END PGP SIGNATURE----- --Apple-Mail=_821A23BB-CDB3-4093-A0E4-7FA068DABA45--