Re: Final properties
| From: | André Rømcke | Date: | Sat, 16 Apr 2016 05:56:32 +0000 |
| Subject: | Re: Final properties | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92362@lists.php.net to get a copy of this message | ||
On 14. apr. 2016, at 11.47, Lester Caine <lester@lsces.co.uk> wrote:
>
>> On 14/04/16 08:52, André Rømcke wrote:
>> * https://wiki.php.net/rfc/propertygetsetsyntax-v1.2
>
> This actually summarises many of the problems all of these 'extras' are
> creating for very little gain.
>
> 'Seconds' is a 'Traditional Property' so is untyped and if accessed as a
> value from some OS's will be a floating point number[...]
It wasn't really the example I intended to point to, it does not represent the cases me and
others refer to. I was linking to it for the possible solution to handle type and immutability.
Examples for the latter:
https://en.m.wikipedia.org/wiki/Value_object
>
> I don't see how the idea of 'optimizing' the compiled code has any
> bearing on handling a 'typed property' when one has to have an object to
> contain even the simple of type information?
What is this regarding?