Re: [RFC] Scalar Type Hinting With Casts (re-opening)

From: Date: Wed, 16 Jul 2014 10:24:58 +0000
Subject: Re: [RFC] Scalar Type Hinting With Casts (re-opening)
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-75584@lists.php.net to get a copy of this message
Zeev Suraski wrote (on 16/07/2014):
For me the introduction of a new set of rules is a deal breaker. I'm -1 on the RFC the way it is, and +1 if we implement these 'hints' as implicit casts, plus change implicit casts to emit E_CAST in case of loss of data or 'bogus' conversions.
Just to be clear, implementing E_CAST would require introducing a set of rules for when to throw it. By a strict reading of your message, that's a deal breaker. In other words, you can't make an omelette without breaking eggs. We can choose not to make the omelette, or we can choose which eggs to break.

« previous php.internals (#75584) next »