Re: RFC - Immutable classes
| From: | Silvio Marijić | Date: | Mon, 08 Aug 2016 13:23:57 +0000 |
| Subject: | Re: RFC - Immutable classes | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94928@lists.php.net to get a copy of this message | ||
@Michal Would you consider cooperating on implementing immutable and sealed
modifiers?
2016-08-08 15:20 GMT+02:00 Michał Brzuchalski <michal@brzuchalski.com>:
> @Silvio I've tried to implement final https://github.com/php/R¡A\
> Itõ\_.«¤&åî
> 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
>
--
Silvio Marijić
Software Engineer
2e Systems