Stas,

On Sun, Oct 21, 2012 at 12:51 PM, Stas Malyshev <smalys...@sugarcrm.com>wrote:

> Hi!
>
> > Hello, list. I want to propose generics.
>
> Please no. If you need Java, you know where to find it. Java has a set
> of great tools, great books, great community. And it's completely free.
> Anybody who needs Java can just do it. I see no need to turn PHP into Java
>

This is not about turning PHP into Java. Can we get over that old rhetoric
already? Instead of bashing proposals like this, can we discuss them,
instead of this hatred for all things strict?

With that aside, I have mixed feelings on this.

On the one hand, I love the functionality. The ability to have
meta-type-safety without having to pollute the environment with tons of
empty classes with nothing more than a type hint (for all collection types)
is huge. It would definitely make defensive programming much easier.
Especially if the ability was afforded to arrays as well (function
foo(array<Bar> $array){})...

On the other hand, the syntax leaves a lot to be desired. It's quite
confusing and really is ugly. As far as how to fix the syntax, I'm not sure.

But I would like to voice my support for the concept...

Reply via email to