Re: [RFC][DISCUSSION] Strong Typing Syntax

From: Date: Wed, 10 Jan 2018 17:01:30 +0000
Subject: Re: [RFC][DISCUSSION] Strong Typing Syntax
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-101584@lists.php.net to get a copy of this message
On Thu, Jan 4, 2018 at 8:21 PM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > I think you, and many others, commenting here, should start by looking > at the engine implementation. Any successful RFC needs to have a strong > implementation behind it, or at the very least a very detailed description of > how the implementation would mesh with the existing engine code. > > The reason we don’t have typed properties/variables is that it would > require adding type checks on almost every access to the underlying > zval. That is a huge perf hit compared to only doing it on method/function > egress points as we do now. > I'm going to underline Rasmus' comment here. zval assignment is a deep/core element of what the engine does. Even when it's not

« previous php.internals (#101584) next »