Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67588 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51434 invoked from network); 28 May 2013 13:29:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2013 13:29:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=rstoll@tutteli.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rstoll@tutteli.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.78 as permitted sender) X-PHP-List-Original-Sender: rstoll@tutteli.ch X-Host-Fingerprint: 80.74.154.78 ns73.kreativmedia.ch Linux 2.6 Received: from [80.74.154.78] ([80.74.154.78:52266] helo=hyperion.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/01-42753-121B4A15 for ; Tue, 28 May 2013 09:29:07 -0400 Received: (qmail 14999 invoked from network); 28 May 2013 15:29:03 +0200 Received: from ip-31-205-11-203.ask4internet.com (HELO RoLaptop) (31.205.11.203) by ns73.kreativmedia.ch with (AES128-SHA encrypted) SMTP; 28 May 2013 15:29:02 +0200 To: "'Amaury Bouchard'" , "'Sebastian Krebs'" Cc: "'Maciek Sokolewicz'" , "'Lars Strojny'" , "'Ferenc Kovacs'" , "'PHP Internals'" References: <06F1F2BA-A054-4B62-AD06-90B621995ADD@strojny.net> <51A474F0.4040408@php.net> In-Reply-To: Date: Tue, 28 May 2013 14:29:00 +0100 Message-ID: <003d01ce5ba7$50fa2580$f2ee7080$@tutteli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHrqT/Nh9HYB75niZs3lo9cKBOsfQGHgjFLAi8AxywClRHVxQEvUi7fAf0C3r0BkBRQiAEu1kPuAgvVOLCYbeW6wA== Content-Language: de-ch Subject: AW: [PHP-DEV] supporting the final keyword for properties From: rstoll@tutteli.ch ("Robert Stoll") In my opinion read-only variables are not the same as constants. You = could do something as following: final $foo =3D new Foo(); and that is definitely not the same as a constant.=20 However, I guess this new feature would slow down the parsing process = and therefore I am against it. -----Urspr=FCngliche Nachricht----- Von: amaury.bouchard@gmail.com [mailto:amaury.bouchard@gmail.com] Im = Auftrag von Amaury Bouchard Gesendet: Dienstag, 28. Mai 2013 13:44 An: Sebastian Krebs Cc: Maciek Sokolewicz; Lars Strojny; Ferenc Kovacs; PHP Internals Betreff: Re: [PHP-DEV] supporting the final keyword for properties 2013/5/28 Sebastian Krebs > > And in your example you have to know, that you are "manipulating" a=20 > variable :? > > Sure. But my example's goal was to show the idea of Lars. Using the "final" keyword on variables would allow to manipulate = variables and "constant variables", without the need to know if it's a variable or = a constant (obviously because they are all variables). Not my idea, I was just explaining.