> -----Original Message----- > From: Rowan Collins [mailto:rowan.coll...@gmail.com] > Sent: Monday, July 14, 2014 6:28 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) > > Derick Rethans wrote (on 14/07/2014): > > A compromise by adding more inconsistencies. > > The only way of not introducing some inconsistencies (or, to put it another > way, new features) is to use strict type hints
Actually there's a pretty simple way that's not strict type hints: 5) Add type hints using existing syntax, which are casts; Change casts (both existing and these new ones) to emit a new E_CAST in case of data loss or 'bogus' conversions. Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php