Re: Better types without runtime checking

From: Date: Fri, 08 Jun 2018 07:33:25 +0000
Subject: Re: Better types without runtime checking
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-102200@lists.php.net to get a copy of this message
On Fri, Jun 8, 2018 at 9:29 AM, Ryan Jentzsch <ryan.jentzsch@gmail.com> wrote: > Thanks Rowan for the detailed explanation. > I thought that leveraging __get / > __set internally would have addressed > many of the type checking issues that you mentioned. > I've used __get/__set in userland to enforce property types and hoped that > an internal C based solution would something that is reasonable to code and > implement. > > Also, can anyone in internals respond to this inquiry? > https://github.com/php/php-src/pull/1797#issuecomment-394434391 Added type checking to __get and __set is one of the primary reasons for a downvote of the typed properties RFC ( https://wiki.php.net/rfc/typed-properties) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/

« previous php.internals (#102200) next »