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

From: Date: Sun, 13 Jul 2014 15:00:30 +0000
Subject: Re: [RFC] Scalar Type Hinting With Casts (re-opening)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-75408@lists.php.net to get a copy of this message
First of all thanks for this proposal. In general I’m hugely in favour of this approach. One thing however seems like a rather bad idea, and that is exposing the type of resource in this way. Resources are not compatible between each other, making such a hint not very useable. If people start adding this hint to their methods it will also make it much harder to change resources into objects (like it has been done for gmp and I have a pull request for hash) Best regards Rouven

« previous php.internals (#75408) next »