Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72885 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42503 invoked from network); 1 Mar 2014 04:09:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2014 04:09:26 -0000 Authentication-Results: pb1.pair.com header.from=mails@thomasbley.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mails@thomasbley.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thomasbley.de from 85.13.137.24 cause and error) X-PHP-List-Original-Sender: mails@thomasbley.de X-Host-Fingerprint: 85.13.137.24 dd15934.kasserver.com Linux 2.6 Received: from [85.13.137.24] ([85.13.137.24:53852] helo=dd15934.kasserver.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/10-41029-47D51135 for ; Fri, 28 Feb 2014 23:09:25 -0500 Received: from dd15934.kasserver.com (dd0801.kasserver.com [85.13.143.205]) by dd15934.kasserver.com (Postfix) with ESMTPSA id 6C0AC2622BD; Sat, 1 Mar 2014 05:09:21 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SenderIP: 151.236.19.65 User-Agent: ALL-INKL Webmail 2.11 In-Reply-To: References: <37A9BBE2-1D9C-4715-9942-EF064476170F@ajf.me> To: internals@lists.php.net Cc: aharvey@php.net Message-ID: <20140301040921.6C0AC2622BD@dd15934.kasserver.com> Date: Sat, 1 Mar 2014 05:09:21 +0100 (CET) Subject: Re: [PHP-DEV] [VOTE][RFC] Array Of From: mails@thomasbley.de Adam Harvey wrote on 28.02.2014 19:00: > On 28 February 2014 09:45, Andrea Faulds wrote: >> >> On 28 Feb 2014, at 17:30, Bob Weinand wrote: >>> I voted no now. >>> >>> a) This is something for PHP6 I feel (at least if the other RFCs were >>> rejected for similar reasons) >>> b) We are so close to beta 5.6 now, I think we should stop introducing bigger >>> features which affect the language etc. now >>> c) I'm not really sure if we want that feature… but that's another story... >> >> >> I also voted against. I don’t like the [] syntax and PHP 5.6 is too close. > > I was also -1, partly for those reasons, but also because I think we > need to take some time (probably in a PHP 5++/6/7/whatever context and > after 5.6 has been frozen) to figure out if we want generics and, if > so, what form they would take syntactically. My guess is that they > won't look anything like ClassName[], and I don't really want another > weird syntax appendix that we have to maintain and document for a > decade or more to come. > > Adam > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > What about adding isarrayof to class declaration? class DbRow {} class DbRows isarrayof DbRow {} function test(DbRows $rows) {} Regards, Thomas