Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72890 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72881 invoked from network); 1 Mar 2014 15:20:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2014 15:20:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=pjsturgeon@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pjsturgeon@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: pjsturgeon@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:47148] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/B0-03854-6DAF1135 for ; Sat, 01 Mar 2014 10:20:55 -0500 Received: by mail-la0-f42.google.com with SMTP id ec20so3561186lab.1 for ; Sat, 01 Mar 2014 07:20:50 -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:to :cc:content-type; bh=dA0/HU4/gZaW7M2pQfKGsGrcrsJSCcQMWQ/hgHjdxPc=; b=JM+X8TxBin5v95h/YasyoMeI1QX8qeez7b0EK6Mxyy1PhpCRfftiFR5vExQnfTQhF9 ZQqwgqTSJH7X+gU3xz+Nf+F3JQbmiCC/gUrmRCTTKtX1aqgQPPjTRN36VNiINzBWM8KW H/bwUKlmCpkD+Vq1LUTA+rB/w6u4RScuahB2ZrwG590Gttfue17kLd2vMk6xgToMgSAp DCyB7AXY3twDiuA+Ql61D7c27qcnZ7MwyEpkvHiYiy66g/vhvBEZGf88aXI0R6Nh+lAa poA4EuuWbF7mKYa6odmHA1foPZdouI/nNBec6GOI6JhthV1D0vARiJhFXD4uoCzP9Rww YkQw== MIME-Version: 1.0 X-Received: by 10.112.77.138 with SMTP id s10mr36806lbw.59.1393687250757; Sat, 01 Mar 2014 07:20:50 -0800 (PST) Received: by 10.114.66.44 with HTTP; Sat, 1 Mar 2014 07:20:50 -0800 (PST) In-Reply-To: <175351E4-45C6-4B9F-AEEC-FCED17414255@ajf.me> References: <37A9BBE2-1D9C-4715-9942-EF064476170F@ajf.me> <175351E4-45C6-4B9F-AEEC-FCED17414255@ajf.me> Date: Sat, 1 Mar 2014 10:20:50 -0500 Message-ID: To: Andrea Faulds Cc: Adam Harvey , Bob Weinand , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [VOTE][RFC] Array Of From: pjsturgeon@gmail.com (Philip Sturgeon) On Sat, Mar 1, 2014 at 10:14 AM, Andrea Faulds wrote: > > On 1 Mar 2014, at 15:08, Philip Sturgeon 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 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.