Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72910 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22049 invoked from network); 3 Mar 2014 20:39:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2014 20:39:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.171 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.220.171 mail-vc0-f171.google.com Received: from [209.85.220.171] ([209.85.220.171:55648] helo=mail-vc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/F0-13181-A88E4135 for ; Mon, 03 Mar 2014 15:39:38 -0500 Received: by mail-vc0-f171.google.com with SMTP id le5so4123096vcb.16 for ; Mon, 03 Mar 2014 12:39:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ZXjUQgCfahL8CRHg8o5a5JeyyvRue/pzqrCr1/b1KIs=; b=BbBcPt93EAPFPvUqz6cpa9a97FYfYJn77cO1KwNvgtOfSIJ8fYDx6RkkUHgw8c7/9y KvqXDda5gXgv465n5hix5b1l15H4oMYkqwrH1WV5r8wLcQWHI0lhVH04SAEpIff9YWfk ye7ofrdwhBlvkRVFZL4fdpr7cBx8ao6izrQ2S+3IoruDg8xBkUAyXivArfyMhdK5AzO5 ASOsTyV5jO163uQ8uwmCcdqQFExqJtO9hSALiFTfK25t6AN8oen9EXuxJpIum4zbSXp9 cNtoJpBg7+Pcf4Fco0pDxxQID9uVhckBfOCz6V05joWTiyHHoAZPOED3S3X1yMDMnpNs x5Xw== X-Received: by 10.52.30.167 with SMTP id t7mr934691vdh.36.1393879174974; Mon, 03 Mar 2014 12:39:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.83.130 with HTTP; Mon, 3 Mar 2014 12:39:14 -0800 (PST) In-Reply-To: References: <37A9BBE2-1D9C-4715-9942-EF064476170F@ajf.me> <175351E4-45C6-4B9F-AEEC-FCED17414255@ajf.me> Date: Mon, 3 Mar 2014 15:39:14 -0500 Message-ID: To: Philip Sturgeon Cc: Andrea Faulds , Adam Harvey , Bob Weinand , PHP Internals Content-Type: multipart/alternative; boundary=bcaec51d2c4215947904f3b9c9d0 Subject: Re: [PHP-DEV] [VOTE][RFC] Array Of From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --bcaec51d2c4215947904f3b9c9d0 Content-Type: text/plain; charset=UTF-8 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 wrote: > On Sat, Mar 1, 2014 at 10:22 AM, Andrea Faulds wrote: > > > > On 1 Mar 2014, at 15:20, Philip Sturgeon 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 --bcaec51d2c4215947904f3b9c9d0--