Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71152 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34755 invoked from network); 15 Jan 2014 20:10:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2014 20:10:59 -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.217.193 as permitted sender) X-PHP-List-Original-Sender: pjsturgeon@gmail.com X-Host-Fingerprint: 209.85.217.193 mail-lb0-f193.google.com Received: from [209.85.217.193] ([209.85.217.193:38401] helo=mail-lb0-f193.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/28-26701-25BE6D25 for ; Wed, 15 Jan 2014 15:10:59 -0500 Received: by mail-lb0-f193.google.com with SMTP id c11so286109lbj.0 for ; Wed, 15 Jan 2014 12:10:56 -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:content-transfer-encoding; bh=taqJoE39ojR1UtHbunyTHhzTuxoCwBaqIizG+mvR0vc=; b=e78p7DSjbR0spFk9yZhvFsgYtxjy42kZ5tjIaOliDMfwefL1rZXmsWPmzGzhjnpVek sC3jmSOuCVKkPo5WqB0ao2YVf8Log1CPBTXsku9iTHlPOmH1BXky4twwjtrwOGDKmnAy S5JRYHgxUStYceuxznwmeo8L+NktUlyRpCGeSN9wQ8R32HOBrMcZRPJrCbqx6MXHw+eQ S7+A0rNx/KKN2CE/q1msbyKk2uqp+FNy4DbOxwRxBYp68wPHbOgyj4+KdtS0uLwB1zla rFh8bScTm1ktYCqGr19u6E6v+jegsmw9gUsDag0JOIS0i+qcj9Es6f5SIz1Omai0ZHWu GOfA== MIME-Version: 1.0 X-Received: by 10.112.135.67 with SMTP id pq3mr1861829lbb.65.1389816656065; Wed, 15 Jan 2014 12:10:56 -0800 (PST) Received: by 10.114.93.231 with HTTP; Wed, 15 Jan 2014 12:10:56 -0800 (PST) In-Reply-To: References: Date: Wed, 15 Jan 2014 15:10:56 -0500 Message-ID: To: Lazare Inepologlou Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: pjsturgeon@gmail.com (Philip Sturgeon) On Wed, Jan 15, 2014 at 2:49 PM, Lazare Inepologlou wr= ote: > > > 2014/1/15 Philip Sturgeon >> >> Hey, >> >> This is my first RFC so give me a little leeway if I get things wrong. >> >> https://wiki.php.net/rfc/arrayof >> >> The implementation has been written by Joe Watkins, and I will be >> handling the RFC process for him. >> >> It is aimed at PHP 5.6, and so far the release managers seem to be ok >> with the idea of this potentially being merged after the alpha >> release, so this should not be considered an issue. >> >> Everything is open for discussion, especially the current error >> messages. They are not perfect, so let us know if you have better >> ideas. >> > > Hello, > > this is a nice proposal. > > I hope that it is not limited to arrays only... All tranversables should = be > acceptable (as they are acceptable for variadiac functions). Otherwise th= is > will lead to unnecessary (and costly) convertions. > > > Lazare INEPOLOGLOU > Ing=E9nieur Logiciel > > > > Currently function (array Foo) is ONLY arrays, not number of interfaces will change that. This RFC keeps to the same logic, but a later RFC could (and IMO absolutely should) address this. I would suggest that this is a different issue, and should be kept separate.