Re: [VOTE][RFC] Array Of

From: Date: Sat, 01 Mar 2014 15:20:50 +0000
Subject: Re: [VOTE][RFC] Array Of
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-72890@lists.php.net to get a copy of this message
On Sat, Mar 1, 2014 at 10:14 AM, Andrea Faulds <ajf@ajf.me> wrote: > > On 1 Mar 2014, at 15:08, Philip Sturgeon <pjsturgeon@gmail.com> wrote: > > This should not even be seen as a rush to implement a weak version > that ruins things and gives us a weird double syntax. It should be > seen as a simple version then if later on generics are implemented > they are a much more powerful feature which has a different syntax. > People can use [] without ever having to understand the complexity of > generics and templates and all that. > > > People can also use Array<Foo> without fully understanding generics. > > -- > Andrea Faulds > http://ajf.me/ If we do a very careful job of documenting them, because introducing developers to the basic levels without distracting and confusing with the advanced stuff is gonna be tricky. My other fallback argument in this case is... "JAVA DID IT". ("Simpsons did it" reference. Anyone?) The point of my survey was to ask if people wanted just this feature, generics, or both. Lots of people said both. It's not completely alien for a language to have both, as Java does this too. I'm sure others do it we poke around enough. It also lines up nicely with the syntax everyone is using for DocBlocks, so again, why not have it now and have some other syntax for a slightly more powerful feature in the future maybe.

« previous php.internals (#72890) next »