Re: Re: [RFC] Union Types v2

From: Date: Fri, 25 Oct 2019 08:08:21 +0000
Subject: Re: Re: [RFC] Union Types v2
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-107690@lists.php.net to get a copy of this message
On Thu, 24 Oct 2019 at 13:47, Rowan Tommins <rowan.collins@gmail.com> wrote: > I think this performance impact is a real concern; PHP is the only language > I know of which implements type checks entirely at run-time in production > code, and we should ask ourselves if that's definitely the right approach. > As they are runtime checks, would an ini setting where they can be completely disabled be feasible? So during development and in production when the performance decrease doesn't matter, I can have the full runtime type checking. But when absolutely needed, the checking can be disabled. Peter

« previous php.internals (#107690) next »