Re: RFC - Immutable classes
| From: | Michał Brzuchalski | Date: | Mon, 08 Aug 2016 12:49:52 +0000 |
| Subject: | Re: RFC - Immutable classes | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94925@lists.php.net to get a copy of this message | ||
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