Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83356 invoked from network); 8 Aug 2016 15:00:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2016 15:00:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=marijic.silvio@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=marijic.silvio@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.177 as permitted sender) X-PHP-List-Original-Sender: marijic.silvio@gmail.com X-Host-Fingerprint: 209.85.223.177 mail-io0-f177.google.com Received: from [209.85.223.177] ([209.85.223.177:34047] helo=mail-io0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/31-33134-B8E98A75 for ; Mon, 08 Aug 2016 11:00:28 -0400 Received: by mail-io0-f177.google.com with SMTP id q83so360576577iod.1 for ; Mon, 08 Aug 2016 08:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DauWdtHsuL4Xm5YmDs5yP9yvvfmhqvZnQptY0bRCb1I=; b=h50l0mR/+c66W6mVBjUNUdSYyfZWGSqZZhe6YDXQuWgRziWGK4OOAJjQtfr+NKF8Fi G3mKLFKMwjYJ8dUI0RQOqD1AV4puNYt+RMjOnroIs+h0L8nMR2pk1Lx5EjgpmIse/5Xa sR1edB5/azMv97+wogcz9myslETQohMAYsTnV5uSyAqrXItCCPgAVEJLRfU2p1KuN1oD PZo/fmftym6Iq8g1FZ4IVDZOh3jPBK79yjBqo6j9T58y2tdBEyeg0U/0Ran8GzcoqUXT MWP4Zfw7tr0JC014bXaHoWLHxgK5S9J3tDzlyKfqgLKnB3/DO44VV1Fnf0EtOnHPZFo8 UHUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=DauWdtHsuL4Xm5YmDs5yP9yvvfmhqvZnQptY0bRCb1I=; b=RwVhnWMXZafOn0GLh2Lf87q80oabo6oFSqrETOJEMPtdJHOaNoZHz/NrCr8YVs0FKe 5bin20ZlGc3nbcobRoT/KCTjhS1xobJ7Hi6TuxEjwr4C3V/DV4Adw9Tk0mF5zFSw6V6h 7yzXbSp3tBoowsp7bUVz+gxjZWeEemB+w0oJ5Y4isgUPUpY5O9h8uFqHnnxvPIGhk8fh doSqH6HOn6g/dF/RjzeMPZC+IZWT3C8cJt1QdU0+9O8tNRDq7vfmANFtUAjs4tWqReTD WuRf+hoYaHPDlPsxl3DJA2TDh/e7NFaNX5BE35tlxvs/+aLEfnqTMaKkKNgV/41xKHkV C/iQ== X-Gm-Message-State: AEkoouthhguRVD0p1IxXPdTvgd9Bdnb2IOmLcriB3l64wpSDmEMPl/e/mK0MSoPeOJ3CQNP31THc8bfTlE9yUw== X-Received: by 10.107.13.14 with SMTP id 14mr36716519ion.115.1470668424565; Mon, 08 Aug 2016 08:00:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.215.198 with HTTP; Mon, 8 Aug 2016 08:00:24 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Aug 2016 17:00:24 +0200 Message-ID: To: =?UTF-8?Q?Micha=C5=82_Brzuchalski?= Cc: "S.A.N" , PHP Internals List Content-Type: multipart/alternative; boundary=001a114098e40769e5053990ad69 Subject: Re: [PHP-DEV] RFC - Immutable classes From: marijic.silvio@gmail.com (=?UTF-8?Q?Silvio_Mariji=C4=87?=) --001a114098e40769e5053990ad69 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It's great that you are up of this. I think it will be great to see this one in action. I agree that we should separate them into separate RFC-s. 2016-08-08 15:51 GMT+02:00 Micha=C5=82 Brzuchalski = : > It is great to hear somone is interested so why not. My lately discussion > found usefull implementing 3 keywords, such as: > 1. *immutable* for the functionality you are currently working on. > 2. *sealed* for the above plus type not changeable. > 3. *final* for the above plus not being overridable. > > But all of them should be implemented in different RFC's starting from > Immutable because it's base point to toher two keywords. > Whole idea needs refreshing discussion to clarify idea so it can success. > > 2016-08-08 15:23 GMT+02:00 Silvio Mariji=C4=87 = : > >> @Michal Would you consider cooperating on implementing immutable and >> sealed modifiers? >> >> 2016-08-08 15:20 GMT+02:00 Micha=C5=82 Brzuchalski : >> >>> @Silvio I've tried to implement final https://github.com/php/p >>> hp-src/compare/master...brzuchal:final-properties but haven't found >>> time to implement immutable and sealed, AFAIK I had problems with OPcac= he >>> enabled, you need to remember to run every test after compile with opca= che >>> 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 >>>> >>> >>> >>> >>> -- >>> pozdrawiam >>> -- >>> Micha=C5=82 Brzuchalski >>> >> >> >> >> -- >> Silvio Mariji=C4=87 >> Software Engineer >> 2e Systems >> > > > > -- > pozdrawiam > -- > Micha=C5=82 Brzuchalski > --=20 Silvio Mariji=C4=87 Software Engineer 2e Systems --001a114098e40769e5053990ad69--