Re: [RFC][DISCUSSION] Strong Typing Syntax
| From: | Levi Morrison | Date: | Wed, 10 Jan 2018 15:13:35 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Strong Typing Syntax | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101579@lists.php.net to get a copy of this message | ||
On Wed, Jan 10, 2018 at 8:10 AM, Sebastian Bergmann <sebastian@php.net> wrote:
> Am 10.01.2018 um 16:04 schrieb Rasmus Lerdorf:
>> Wow, that's rather insulting to the amazing work Dmitry, Nikita, Xinchen
>> and others are doing working on the core of PHP.
>
> I agree.
>
> IIRC, last time optional type declarations for attributes were discussed
> Dmitry optimized/refactored something in the engine that would reduce the
> performance hit.
>
> Do we have a guess at how big that performance hit would be? I, for one,
> would gladly trade a couple of percent of performance (considering the
> huge gains in performance PHP 7 brought) to be able to use these type
> declarations in my code.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
An additional issue is typed references. I believe Bob Weinand did
some work in that area; maybe he can share more insight.