Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72137 invoked from network); 8 Aug 2016 13:20:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2016 13:20:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=michal@brzuchalski.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=michal@brzuchalski.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain brzuchalski.com designates 188.165.245.118 as permitted sender) X-PHP-List-Original-Sender: michal@brzuchalski.com X-Host-Fingerprint: 188.165.245.118 ns220893.ip-188-165-245.eu Received: from [188.165.245.118] ([188.165.245.118:38950] helo=poczta.brzuchalski.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/4F-33134-42788A75 for ; Mon, 08 Aug 2016 09:20:37 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by poczta.brzuchalski.com (Postfix) with ESMTP id 5F621298423B for ; Mon, 8 Aug 2016 15:20:33 +0200 (CEST) Received: from poczta.brzuchalski.com ([127.0.0.1]) by localhost (poczta.brzuchalski.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oL-gz-R2EVcL for ; Mon, 8 Aug 2016 15:20:31 +0200 (CEST) Received: from mail-qk0-f181.google.com (unknown [209.85.220.181]) by poczta.brzuchalski.com (Postfix) with ESMTPSA id 7898C298423A for ; Mon, 8 Aug 2016 15:20:29 +0200 (CEST) Received: by mail-qk0-f181.google.com with SMTP id x185so128218524qkc.2 for ; Mon, 08 Aug 2016 06:20:29 -0700 (PDT) X-Gm-Message-State: AEkooutGqiFQYpt9i4CbwohJpYk5rgCaT+uFl3HiNYYMwVugkqifPTUrKcJYY7pZcYuLaKeOwkTvan7OI1EgqA== X-Received: by 10.55.148.67 with SMTP id w64mr27606737qkd.78.1470662429024; Mon, 08 Aug 2016 06:20:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.53.155 with HTTP; Mon, 8 Aug 2016 06:20:28 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Aug 2016 15:20:28 +0200 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?Q?Silvio_Mariji=C4=87?= Cc: "S.A.N" , PHP Internals List Content-Type: multipart/alternative; boundary=94eb2c084e84aaa7c105398f478f Subject: Re: [PHP-DEV] RFC - Immutable classes From: michal@brzuchalski.com (=?UTF-8?Q?Micha=C5=82_Brzuchalski?=) --94eb2c084e84aaa7c105398f478f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable @Silvio I've tried to implement final https://github.com/php/php-src/compare/master...brzuchal:final-properties but haven't found time to implement immutable and sealed, AFAIK I had problems with OPcache enabled, you need to remember to run every test after compile with opcache enabled in CLI. 2016-08-08 15:00 GMT+02:00 Silvio Mariji=C4=87 : > @Michal, well no I did read it. I see that there is not much going on > there since last year. Did you tried to implement it ? > > 2016-08-08 14:49 GMT+02:00 Micha=C5=82 Brzuchalski : > >> >> 2016-08-08 14:47 GMT+02:00 S.A.N : >> >>> May be better to do as immutable arrays? >>> >>> const =3D new Email; >>> >>> it will be a super global immutable instance of Email. >>> >> >> I think you've missunderstood concept of immutable classes. >> >> >> -- >> pozdrawiam >> -- >> Micha=C5=82 Brzuchalski >> > > > > -- > Silvio Mariji=C4=87 > Software Engineer > 2e Systems > --=20 pozdrawiam -- Micha=C5=82 Brzuchalski --94eb2c084e84aaa7c105398f478f--