Re: Typed array properties V2
| From: | Larry Garfield | Date: | Fri, 17 Jan 2020 17:08:19 +0000 |
| Subject: | Re: Typed array properties V2 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108183@lists.php.net to get a copy of this message | ||
On Fri, Jan 17, 2020, at 7:53 AM, Robert Hickman wrote:
> > So essentially we are talking about generics. I think it's the best time to
> > do so... Maybe our wishes come true soon? ;)
> >
>
> Given that the general trend is towards making PHP more statically
> typed and very java/C# like, why not just ditch PHP and use one of the
> aforementioned languages?
Because those languages suck for scripted use. For shared-nothing scripting, PHP beats the pants
off of them.
That doesn't mean we can't continue PHP's fine tradition of stealing good ideas
liberally from every language we can find. We can and should do so. (Whether we adopt Generics in
the Java.C#/C++ style or pull from some other language is a separate debate.)
cf: https://24daysindecember.net/2019/12/06/growing-gradually-in-php/
--Larry Garfield