Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95995 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31190 invoked from network); 14 Sep 2016 16:03:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2016 16:03:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.15 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.15 mout.gmx.net Received: from [212.227.15.15] ([212.227.15.15:60017] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/C5-21040-CD479D75 for ; Wed, 14 Sep 2016 12:03:41 -0400 Received: from [192.168.2.103] ([79.243.115.246]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MKHtm-1blqow0CJy-001mH0; Wed, 14 Sep 2016 18:03:36 +0200 To: "David (Dj) Eddy" , internals@lists.php.net References: Message-ID: <4f95c850-d7c2-a3c2-6114-f5f858da395e@gmx.de> Date: Wed, 14 Sep 2016 18:03:50 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:UHnuCqGRRDt5/1Wazt3r+Fwe//57D/7odW8B/lerku95g6Ge4xJ LXjBt1uvUCHw45eImTZ2y64ZhhUcMs02gkbecsTz01hy/27D2PyVO62B8MA1QhsWwQmE1NM XB0Wcza6CGyMrkOYn5gR8kGiHvaiUDyUasCXoacCxHoINB+pyz0ZDyHMYT2ZsmLeJis7r6+ 6g9Pp4jKSsgv98ZFotxOg== X-UI-Out-Filterresults: notjunk:1;V01:K0:8FXTy5YKQ9Q=:FStc0gK2H/okT4DqsGADoo zYlqfW5JYvYdf8yiG4/qX0cM+fz5x3wZxt4b+SbTUngBsk2xVYyC9P1unC5oHWupNIe82w1zL FKBZiLYh49asr14d2FlcFFdBUL0QGklQ64qK/AMQpZZG97HvVlFPmJo/6ecRUF6P8vVPmTSjx I0EpLKbCOAbmCi4RcQtMvgI/3H5Qn5VX+wvwP8wnQDr1y8CWEtsm0PWQzG9I7l+0AgqCRO0kU rX3XfQk5hxcJcfUvxztNclbs/WD+v1f5BjmXVDPpQ8M8PJtZncyv067o4XDkVkkazXTJCGKoz InhM+Jon3SNV+YW6w/oGkFc+xO4jAW+DMIp2fhMgoYrX+hy/IzD6++qx3S0qhWLyRfq3VeRDT qo/cLslnwRNOrhHNppQWTaeWaKe4G6MBSRyZs1bthsVMab4veFeWB4/ppqJHWMaf4xHLI5UrN Ki/fE+uaR29dQx4pi+1HNrvWVPP2gso88eUuawz6fzHeIpGj00IQYAFFB/yQTh5dpNY3nQ/HR ZLXNQ2FVcbDnjmyYV3gkvxx7WGlFcz75WE2YP5ruroirwT16rDI8LWQ7ctsM0/3eq7YlFtAf3 J2Qm7mRA7eZg0bO/Zj3w7+0Ne17MXNWD/1TV/E47FbB6NYJvbT9JqQZSsHZILqKfnixVJu0Q7 lnFXhUceNwMs2h7GND2uX4dlRen1GQ3EOYb25Z+2XQDw4KWTMK/+tDviub3qNQJFXqMFEHs23 CKMpF/MonJto5oS/z+oOleVu0cqWiyUYR2yyXcVVmh1Il7j+7N3ZCVKwuLFpGUgW0Bz+cYlyX Xtqd888 Subject: Re: Concept: 7.1 nullable function parameter format ... From: cmbecker69@gmx.de ("Christoph M. Becker") On 14.09.2016 at 17:10, David (Dj) Eddy wrote: > Issue: Currently the format for nullable function parameters is as > follows: `fn(?int $param)`; this makes little visual sense from an > outside perspective. What does the `?` mean? PHP does not have a `?` > data type; it is very visually ambiguous. > > Suggestion: `fn(null|int $param)`. This uses the same syntax format > that other logic constructs in the language use as well as being very > explicit to the data types allowed for the parameter. For the moment > only `null|{one other data type}` would be the goal of the RFC; > however in future iterations multiple data types could be allowed. > > Gauge initial interest in a alteratio of this type, thanks for your time. There has already been the union type RFC[1], which has recently been declined. [1] -- Christoph M. Becker