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

From: Date: Tue, 15 Jul 2014 20:11:47 +0000
Subject: Re: [RFC] Scalar Type Hinting With Casts (re-opening)
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-75564@lists.php.net to get a copy of this message
Hi!

> The PHP community that I know, wants to have _both_ type cast hinting
> and strict type declarations.

No, different members of the community want different options, because
it would serve their particular use cases. But that does not mean it
necessarily must be part of PHP - not all use cases must and can be
served by the language. Something will inevitably be left out.

> PHP internals on the other hand, would rather argue to death over

PHP internals would rather have consistent implementation that we can
build on and support for next 10 years than serve one particular use
case which may even not be there in 2 years or create a hodgepodge of
syntaxes just to ensure nobody is left out. Yes, that means sometimes we
argue a lot and sometimes we reject your favorite use case. Figuring
what is right for a tool used by a diverse community of millions is not
easy, and what could seem obviously right to you may seem as obviously
wrong to somebody else. Sometimes it is better to not implement
something than implement it wrong and be stuck with it for the next decade.
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/


Thread (250 messages)

« previous php.internals (#75564) next »