Re: [VOTE][RFC] Array Of

From: Date: Mon, 03 Mar 2014 20:39:14 +0000
Subject: Re: [VOTE][RFC] Array Of
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-72910@lists.php.net to get a copy of this message
FYI, I changed my vote from +1 to -1. I like the idea (the +1 part), but I don't think it's the right way to fix it (the -1 part). Generics would solve this in a nicer way without being impacted by an O(n) problem of type checking. I'd second a Collection support with array_* integration which would make everything much nicer too. Cheers, On Sat, Mar 1, 2014 at 10:25 AM, Philip Sturgeon <pjsturgeon@gmail.com>wrote: > On Sat, Mar 1, 2014 at 10:22 AM, Andrea Faulds <ajf@ajf.me> wrote: > > > > On 1 Mar 2014, at 15:20, Philip Sturgeon <pjsturgeon@gmail.com> wrote: > > > > 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. > > > > > > Or, we could have generics-like syntax now and add proper generics later, > > meaning people would get a free performance boost eventually and we'd be > > able to eliminate the O(n) issue. > > > > -- > > Andrea Faulds > > http://ajf.me/ > > > > > > > > > > And again I say that is something that will be considered if this vote > doesn't pass. > > "Array of" using Generics-like syntax in 5.7 and full on generics in > 5++ (6 or 7) is looking like a more likely route at this point. It's > just one that I personally don't like. :) > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada

« previous php.internals (#72910) next »