Re: Final properties
| From: | Sebastian Bergmann | Date: | Sat, 09 Apr 2016 07:39:03 +0000 |
| Subject: | Re: Final properties | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92179@lists.php.net to get a copy of this message | ||
Am 05.04.2016 um 11:13 schrieb Marco Pivetta:
> First of all: +1 to this: very useful for value objects!
My thought exactly.
> do we want to use
final, or
> immutable for these properties?
I have the same sentiment you have, that "final" would be confusing
and "immutable" would be better. But it's also confusing to have
the same concept another language has under a different name. Hm.
I think I tend towards "immutable".