Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71376 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93346 invoked from network); 21 Jan 2014 05:37:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2014 05:37:47 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.45 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.212.45 mail-vb0-f45.google.com Received: from [209.85.212.45] ([209.85.212.45:50913] helo=mail-vb0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/25-02192-AA70ED25 for ; Tue, 21 Jan 2014 00:37:47 -0500 Received: by mail-vb0-f45.google.com with SMTP id m10so3325929vbh.32 for ; Mon, 20 Jan 2014 21:37:44 -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=QhCD8Mjp25xzZsvK8sktNev8xY5hsLAphI+sWSNL6sA=; b=NoNNjY64c/4TVJKs1zDpbm1lgK90UM8CTqbgPa3PUXNR9UISn0L9ijeI8ZdzXSx09s tSp+4ltlgv7BDyhF8cUzctrOtxwCPnBz6N1DB7MxQZEqOr8z1AMsoDxgE0q3kE85wVSj oKYGy6DQkmWztTBdjCqy7+AZfeoc8zZNTlc9ETYM+mY9QDLi8coeWPgk8GEFnZuol/3X jftfRH2TjHZiGwbvSwJf72ALfkMO6jK92XWIRKym/W6ShMMF/sbxR74IxtmGLxfhCr7X w3ZFDRMQ03DRSE1IImg5CM+c7xzRbkyvCPoNsL79c/vlLeHTc0U6KKdIxNGDO0lIsNM2 Qhdg== MIME-Version: 1.0 X-Received: by 10.221.40.10 with SMTP id to10mr2796024vcb.22.1390282663825; Mon, 20 Jan 2014 21:37:43 -0800 (PST) Received: by 10.58.196.241 with HTTP; Mon, 20 Jan 2014 21:37:43 -0800 (PST) In-Reply-To: References: Date: Tue, 21 Jan 2014 13:37:43 +0800 Message-ID: To: Philip Sturgeon Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113375765097cc04f074684f Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: tjerk.meesters@gmail.com (Tjerk Meesters) --001a113375765097cc04f074684f Content-Type: text/plain; charset=ISO-8859-1 Hi Phil, On Thu, Jan 16, 2014 at 2:17 AM, Philip Sturgeon wrote: > 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. > First of all, congrats on getting your first RFC out; despite the issues brought up so far, the idea itself is certainly interesting :) I was curious about whether it would be possible to perform this type check outside of the function context as well? For example: if ($array instanceof Foo[]) { ... } From what I could tell, this is not part of the RFC. As an aside, for the fun of it, I thought of this arcane casting syntax: $arr = (int[])$arr; > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -- Tjerk --001a113375765097cc04f074684f--