Re: Request for comments - new PHP feature: return typing
Hi!
> Thanks for your input Sara, everything sounds very interesting. In all
> fairness I haven't looked at HHVM but I from what you described about
> this particular feature sounds good.
>
> Should I conclude that there's enough interest for this feature and
> move from a gist to a RFC? If so, I would definitely need someone to
> help out with the implementation.
We already have a bunch of RFCs about strict typing in PHP:
https://wiki.php.net/rfc/typechecking
So I personally am not sure we need yet another RFC on the topic - given
that we discussed previous ones multiple times.
While HHVM is a very interesting project, their use case is pretty
specific and narrow, and, as I understand, connected to a single
application (albeit running huge traffic numbers). So I'm not sure
copying whatever they do is necessarily good for PHP as a whole. HHVM
case is basically static compilation of monolithic application, as far
as I remember, which is not how PHP is usually run. It is true that such
mode negates many arguments against static typing, but it negates them
only for specific narrow case of HHVM, not for PHP as a whole.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227
Thread (35 messages)