Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61301 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96442 invoked from network); 16 Jul 2012 13:48:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2012 13:48:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:46988] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/24-11081-49B14005 for ; Mon, 16 Jul 2012 09:48:05 -0400 Received: by pbbrp12 with SMTP id rp12so11106837pbb.29 for ; Mon, 16 Jul 2012 06:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZfbCWynYhHktU6CWujc1bWfTsZ01c6IH6Z82e5qQ1Is=; b=LeRBf5cKr/hcwwBpJB76sU3OhRs6Q0jTBSG9I+0FyGPKB75Ln14PR3oNEcH+1Mykh8 peEQeLFZeaYqyqaQhtSMcOFPgY8uwO39tvEeuEHaYa+GAtc59IeqlNBYH6/odnf4nu2J xIl0hHjO0UeyTp5aP6PV7ex7mxw8eIoh+aTl4qg2YTnQRJV7ZpuSC2+65OAhJGXYpM8c 3ILce/tdL/U13qbYgpRm+eOA7P74CCEaiJ+NDb9BTVNthE1OIaH+L54y0mbDIjclG1iH j+gwTTlPFKb1j2IIgE1HRW4OPBrfHtiYfrdeCizgWFtINpy92ziJD4xNBfi1qRPihhXG JE3A== MIME-Version: 1.0 Received: by 10.68.217.73 with SMTP id ow9mr5200363pbc.75.1342446482082; Mon, 16 Jul 2012 06:48:02 -0700 (PDT) Received: by 10.68.54.169 with HTTP; Mon, 16 Jul 2012 06:48:02 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Jul 2012 15:48:02 +0200 Message-ID: To: Pierre Joye Cc: PHP Internals Content-Type: multipart/alternative; boundary=e89a8ffba22db1ca9004c4f2adf3 Subject: Re: [PHP-DEV] supporting the final keyword for properties From: tyra3l@gmail.com (Ferenc Kovacs) --e89a8ffba22db1ca9004c4f2adf3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2012 at 3:42 PM, Pierre Joye wrote: > hi, > > On Mon, Jul 16, 2012 at 2:25 PM, Ferenc Kovacs wrote: > > > The recent > http://www.mail-archive.com/internals@lists.php.net/msg59301.html > > discussion > > made me wonder why did we decide not supporting the final keywords for > > properties as it would provide an easy way for read-only attributes > (const > > would be a better choice in performance wise, but then you can only set > it > > in your declaration where no dynamic expression is allowed.) > > Final and readonly are too totally different concepts. > except in those programming languages, where declaring attributes as final does the same thing. > > Read only properties can be implemented by doing something using the > nice getter/setter RFC > (https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented). > > thats true, maybe we should drop this thread until that RFC gets voted on. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --e89a8ffba22db1ca9004c4f2adf3--