RE: [PHP-DEV] Scalar Type Hints v0.4

From: Date: Wed, 18 Feb 2015 15:55:42 +0000
Subject: RE: [PHP-DEV] Scalar Type Hints v0.4
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-83088@lists.php.net to get a copy of this message
> De : Rowan Collins [mailto:rowan.collins@gmail.com] > That's precisely the case for every existing user-defined function. > Switching to PHP 7 won't suddenly add type hints to every function in > every library and every existing bespoke code base, so there is no way > to avoid that thought process. > > > I think the rules need to apply to everything or nothing. > > The rules will apply to everything in the same way - if a function is > typehinted, it behaves like so; if it's not, it behaves the same way it > did in PHP 5. I understand your pov but, in mine, there's no reason to artificially consider internal functions as untyped by adding another mostly-redundant mechanism for internal type hinting. If nothing existed, this would be fine, but if we split ZPP and type hinting info, we're creating a redundancy we'll pull behind us forever. Regards François

« previous php.internals (#83088) next »