Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72857 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43533 invoked from network); 28 Feb 2014 09:29:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2014 09:29:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=linepogl@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=linepogl@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: linepogl@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:33310] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/12-28957-01750135 for ; Fri, 28 Feb 2014 04:29:52 -0500 Received: by mail-we0-f170.google.com with SMTP id w61so328608wes.15 for ; Fri, 28 Feb 2014 01:29:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=7or1ZgMf7wsZH6cOO7uaO5PUwtAdpk1qJH5w4c4b2ZA=; b=miBW0NWwYZX1MHbiQPdbLj6Qbvqw/53RcB7uP0Z1NrY2XrqxPCf48Wd5xtJUY9VVUb My1+uTtskMOIzbDrlQiJIS0jCE/CjXIZ/clu5Z6Zb8Nnepd2qC7gzdMdgmyQxk6KFu8t wbQE/tCdaiulV28PyEJOgl35Twm1uXK2+xY9TUf7GQTdiwwb40gzNMBngKB83T05jfKH EIcxuXLNg4wR2OWlrpUoaXZtFzxdgld1iWNa5M54K1npUNTNtwhhR2GzWcz/IONdnd/u FUMHrjpLmpfRWo9trAYuMuHcjVX6rtCukvU5vQk36r0q941+8mFnqoEDplNGVNjjb+8b JXsg== X-Received: by 10.180.189.10 with SMTP id ge10mr2199911wic.47.1393579789709; Fri, 28 Feb 2014 01:29:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.101.74 with HTTP; Fri, 28 Feb 2014 01:29:29 -0800 (PST) In-Reply-To: <531044A8.8050002@googlemail.com> References: <52D865C7.4070009@sugarcrm.com> <531044A8.8050002@googlemail.com> Date: Fri, 28 Feb 2014 10:29:29 +0100 Message-ID: To: Crypto Compress Cc: Marco Pivetta , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=001a11c23d3e55152004f37414f5 Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: linepogl@gmail.com (Lazare Inepologlou) --001a11c23d3e55152004f37414f5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2014-02-28 9:11 GMT+01:00 Crypto Compress : > Hello List, > > So, should we allow nulls in an arrayof-style type hint? >> > > No. Null values (optional values) should be allowed within an > nullable-arrayof-style type hint. > > Compare: function foo(Bar $baz =3D null) > and: function foo(Bar $baz) > > This is not the same syntax and null is not a type. > > I do not really understand your point here but I want to shout out that null is definitely a type having only one possible value. This is one thing that PHP got right in contrast to Java, C# etc. Lazare INEPOLOGLOU Ing=C3=A9nieur Logiciel > > cryptocompress > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c23d3e55152004f37414f5--