Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97801 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70551 invoked from network); 17 Jan 2017 09:13:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2017 09:13:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:35140] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/A0-00729-030ED785 for ; Tue, 17 Jan 2017 04:13:21 -0500 Received: (qmail 129500 invoked by uid 89); 17 Jan 2017 09:13:17 -0000 Received: from unknown (HELO mail-wm0-f42.google.com) (yohgaki@ohgaki.net@74.125.82.42) by 0 with ESMTPA; 17 Jan 2017 09:13:17 -0000 Received: by mail-wm0-f42.google.com with SMTP id r126so192129696wmr.0 for ; Tue, 17 Jan 2017 01:13:17 -0800 (PST) X-Gm-Message-State: AIkVDXLtyOxTn8nNfjJpFBI3dnDMBjWfO9yxEaPYreg1T8kdPf0ZY7nNzr1AJ7Jft2m/UFoesRRDrtHXbNC68g== X-Received: by 10.28.101.133 with SMTP id z127mr15940792wmb.25.1484644390890; Tue, 17 Jan 2017 01:13:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.195.12.8 with HTTP; Tue, 17 Jan 2017 01:12:30 -0800 (PST) In-Reply-To: References: <19.8F.27518.25CFE485@pb1.pair.com> <25846969-F608-4EE2-8636-8823213C990B@gmail.com> Date: Tue, 17 Jan 2017 18:12:30 +0900 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?Q?Silvio_Mariji=C4=87?= Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a114b741e897ee9054646b5e2 Subject: Re: [PHP-DEV][RFC][DISCUSSION] - Immutable classes and properties From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a114b741e897ee9054646b5e2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Silvio, On Tue, Dec 13, 2016 at 6:17 PM, Silvio Mariji=C4=87 wrote: > After much thinking regarding array in immutable objects I'm thinking of > revoking this RFC. If someone has some suggestion on that matter now is t= he > time, but otherwise my work is done on this one. > It may be good to start from constant scalars. ES6 has "let" and "const". PHP has "const", but PHP's constant does not have scope other than class. It would be nice if const can be used like JS. e.g. Following is syntax error. It would be large enough changes for 8.0, though. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a114b741e897ee9054646b5e2--