Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71150 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31674 invoked from network); 15 Jan 2014 20:07:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2014 20:07:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.54 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.54 mail-oa0-f54.google.com Received: from [209.85.219.54] ([209.85.219.54:50557] helo=mail-oa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/77-26701-27AE6D25 for ; Wed, 15 Jan 2014 15:07:15 -0500 Received: by mail-oa0-f54.google.com with SMTP id o6so1806901oag.13 for ; Wed, 15 Jan 2014 12:07:12 -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=KrmQ78HbAP2VCrdg+6xSLNjg/oO/gbaZcAR7Y8Gvtik=; b=eVwhDErkXbrQ7p/DH9XFaesoqcY6Wv420UZbmGvfl4HYET2CobeIvM/W2hHJ5wDqGl K0nnaDunPgjyRNfcumekrgo+xlhi61HfME0zGjjuaj65JK1XC91cVHLrU+C+z45BuT6N Xw4BwaWX9rLxrZw3iX6y18jdF4yMw4c1q7ZYGdRkM4dq/ogeuLDDx39owqGdqV9V0mNi P1ASUS/3MOD7bOMdN/3wuvnRFVYgufCT2G4yN2XnD0O+RN9lUfObtJVAW8hldUB7Q9a9 NerKspf9CSU7W0G2DNTSMrqlQQNLfg0FV2Zs9iF/mYypVnERg+AlxnsLk4E6inUAHLeC d4hg== MIME-Version: 1.0 X-Received: by 10.182.55.65 with SMTP id q1mr3466508obp.2.1389816432032; Wed, 15 Jan 2014 12:07:12 -0800 (PST) Received: by 10.182.54.112 with HTTP; Wed, 15 Jan 2014 12:07:11 -0800 (PST) In-Reply-To: References: Date: Wed, 15 Jan 2014 21:07:11 +0100 Message-ID: To: Lazare Inepologlou Cc: Philip Sturgeon , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e01538848bbff5304f007da05 Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: nikita.ppv@gmail.com (Nikita Popov) --089e01538848bbff5304f007da05 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jan 15, 2014 at 8:49 PM, Lazare Inepologlou wrote: > 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 this > will lead to unnecessary (and costly) convertions. > An array is not just traversable - it is also array accessible and countable, as well as passable-to-array-functions. Allowing to pass Traversables to an array typehint violates the type constraint. Nikita --089e01538848bbff5304f007da05--