Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71510 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23059 invoked from network); 24 Jan 2014 15:43:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2014 15:43:12 -0000 Authentication-Results: pb1.pair.com header.from=pjsturgeon@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pjsturgeon@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.178 as permitted sender) X-PHP-List-Original-Sender: pjsturgeon@gmail.com X-Host-Fingerprint: 209.85.217.178 mail-lb0-f178.google.com Received: from [209.85.217.178] ([209.85.217.178:41241] helo=mail-lb0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/50-21270-E0A82E25 for ; Fri, 24 Jan 2014 10:43:11 -0500 Received: by mail-lb0-f178.google.com with SMTP id u14so2700542lbd.9 for ; Fri, 24 Jan 2014 07:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=mhuSwUMVPxFxunaOgEcZhYOK0GrQb4t6dC6XjjbYfqU=; b=PAGKO0F8i03yuVkiGmCqtUpwz0bNEJI6Zv/qvOBgc5UdSNGZxKDH4HcKb4S0vS2pVF grV8wQ9TS0yrI+lIZav0zjo1Zj4nYZby0h1nJYY3UbjvvLOoq8+0nxEwEqdkiXLsDuIN lSRtknLny1edBOx9aJFr4aVq1UhMDrdIG++zyUec2kXa2V6SdOjizSy5Mz3e/l2G/FqE I1+ZaFeU5JrjLlIDPG84fRboJmh6MMw1hBQHfKyZFxAKp2gBgLHCxOXf/tcumX4puyic jX4TnyeQaRTlLvs1hY4ToBojcPdy2Ea94G2YSNdCvW4zIagnaqrMRsKv7wv7a+fU2gjb bHJA== MIME-Version: 1.0 X-Received: by 10.112.151.42 with SMTP id un10mr9057183lbb.7.1390578188127; Fri, 24 Jan 2014 07:43:08 -0800 (PST) Received: by 10.114.66.44 with HTTP; Fri, 24 Jan 2014 07:43:08 -0800 (PST) In-Reply-To: <52E2867F.8050107@ajf.me> References: <52E2867F.8050107@ajf.me> Date: Fri, 24 Jan 2014 10:43:08 -0500 Message-ID: Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV][VOTE] "Array Of" v Generics From: pjsturgeon@gmail.com (Philip Sturgeon) On Fri, Jan 24, 2014 at 10:27 AM, Andrea Faulds wrote: > > > On 24/01/14 03:20, Philip Sturgeon wrote: >> >> Can you lot vote A, B, C or D to show your interest? >> >> A) I want Array Of, but not Generics >> B) I want Generics, but not Array Of >> C) I want both >> D) I want neither > > > 1. Why is this a separate RFC? ...or is it? Array of and Generics would be a different RFC from each other. Array-of will go in first, Generics will come in later. I am asking people to let me know if they give a hoot about generics, so we can work out what is happening with the array of syntax. > 2. That's not really what the discussion previously was about. Can we > instead have a vote on: > > A) I want Foo[] syntax > B) I want Array syntax > C) Neither The discussion went to email between Sara G, Joe W and myself. They brought me around and improved my understanding of generics - as I explained it had one fatal flaw - and Sara explained that once "array of" is in, generics would be a logical move to follow up. We're at this point of: "do we use "array of" syntax "Foo[]" and then later on if we want generics do we add array for generics, leaving the two features available like in Java, but of course allow the rest of generic functionality like $foo = new Tool();" or "do we use the generics syntax for this regardless, consider "array of" to be "weak generics" then add full-on generics later on using the same syntax" This survey was intended to help a decision be made for the above two statements. They actually match your A or B, but I wanted more insight into how the group felt before trying to specifically force a syntax. People might like the A syntax, but if that gets voted in we have trouble down the road if people want generics, but if people dont want generics then happy days who cares lets push A. Can you see why insight is helpful here instead of just plowing on into a dumb-vote? :)