On Tue, Jul 15, 2014 at 8:24 PM, Rowan Collins <rowan.coll...@gmail.com> wrote:
> The logical conclusion from that is not to have type hints at all. So far, > that is in fact the only consensus the PHP community has ever reached - not > to have scalar type hints. I'm sorry, I know what you mean here and I'm not criticizing you specifically (in fact, I'm intentionally taking it ouf of context), but that's "PHP internals", not "PHP community". The PHP community that I know, wants to have _both_ type cast hinting and strict type declarations. PHP internals on the other hand, would rather argue to death over which specific version of the two is the one and true way to rule them all. We had that with the ArrayOf hints too, which turned into ArrayOf vs Generics. Heritage this, history that, consistent with X, inconsistent with Y, don't forget the special case Z, "use another language", "that's been proposed already" ... That is why an Nth iteration of scalar type hinting is being discussed, not because it's so damn hard to do it right. Doing it right here means to understand that everybody wants scalar type hinting for different use cases and to try to satisfy use case A without excluding use case B as a possibility in the future. Sorry about the rather aggressive remark, but somebody had to say it. Cheers, Andrey. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php