Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71163 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58142 invoked from network); 15 Jan 2014 23:54:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2014 23:54:31 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.241 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.241 imap3-1.ox.registrar-servers.com Received: from [198.187.29.241] ([198.187.29.241:45610] helo=imap3-1.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/A1-48719-4BF17D25 for ; Wed, 15 Jan 2014 18:54:30 -0500 Received: from localhost (localhost [127.0.0.1]) by oxmail.registrar-servers.com (Postfix) with ESMTP id D39292A0053; Wed, 15 Jan 2014 18:54:24 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap3.ox.registrar-servers.com Received: from oxmail.registrar-servers.com ([127.0.0.1]) by localhost (imap3.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vzkRQOgPriY2; Wed, 15 Jan 2014 18:54:24 -0500 (EST) Received: from [192.168.0.200] (unknown [176.25.177.94]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 19BC52A006A; Wed, 15 Jan 2014 18:54:23 -0500 (EST) Message-ID: <52D71FAE.8030002@ajf.me> Date: Wed, 15 Jan 2014 23:54:22 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Crypto Compress , internals@lists.php.net References: <001301cf1227$6d082ab0$47188010$@tutteli.ch> <002d01cf1234$01e6dc60$05b49520$@tutteli.ch> <004c01cf123d$35730870$a0591950$@tutteli.ch> <52D71748.1090402@googlemail.com> In-Reply-To: <52D71748.1090402@googlemail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: ajf@ajf.me (Andrea Faulds) On 15/01/14 23:18, Crypto Compress wrote: > e.g.: function foo(Bar[null] = null) I'd prefer the ? syntax for nullables that C# has. I'm imagining something like this: function foo(Bar? $a) {} // $a is Bar/null function foo(Bar?[] $a) {} // $a is array of Bars/nulls function foo(Bar[]? $a) {} // $a is array of Bars, or null function foo(Bar?[]? $a) {} // $a is array of Bars/nulls, or null -- Andrea Faulds http://ajf.me/