Re: RFC - Immutable classes

From: Date: Mon, 08 Aug 2016 13:20:28 +0000
Subject: Re: RFC - Immutable classes
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-94927@lists.php.net to get a copy of this message
@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ć <marijic.silvio@gmail.com>: > @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ł Brzuchalski <michal@brzuchalski.com>: > >> >> 2016-08-08 14:47 GMT+02:00 S.A.N <ua.san.alex@gmail.com>: >> >>> May be better to do as immutable arrays? >>> >>> const = new Email; >>> >>> it will be a super global immutable instance of Email. >>> >> >> I think you've missunderstood concept of immutable classes. >> >> >> -- >> pozdrawiam >> -- >> Michał Brzuchalski >> > > > > -- > Silvio Marijić > Software Engineer > 2e Systems > -- pozdrawiam -- Michał Brzuchalski

« previous php.internals (#94927) next »