Re: Re: Improving PHP's type system
| From: | Zeev Suraski | Date: | Tue, 19 Apr 2016 22:30:53 +0000 |
| Subject: | Re: Re: Improving PHP's type system | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92502@lists.php.net to get a copy of this message | ||
On 20 ????? 2016, at 1:10, Marco Pivetta <ocramius@gmail.com<mailto:ocramius@gmail.com>> wrote:
On 19 April 2016 at 23:47, Zeev Suraski <zeev@zend.com<mailto:zeev@zend.com>> wrote:
I fail to see how adding C++ templates to PHP takes it to the next level in anything but the
complexity scale. Not having them is not preventing anybody from doing anything today. Sure, a
bunch of frameworks would adopt them once they become available - but it will not enable them to do
things that are radically different from what they're doing today.
And the fact that you fail to see it is why you don't see any advantages, but that's
because you are likely unfamiliar with most recent tooling around static introspection.
Saying that a given feature will not take PHP to the next level is not at all the same as saying I
don't see any advantages. I did not say the latter, and I stand behind the former. As I said,
I'm sure frameworks would use it and there are obviously some valid use cases for it, but it
won't change the way the vast majority of people develop code. Forget for a minute whether we
should or shouldn't add it - this is not a make or break feature for PHP.
Zeev