Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64599 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93139 invoked from network); 6 Jan 2013 09:06:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2013 09:06:02 -0000 Authentication-Results: pb1.pair.com header.from=php@bof.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@bof.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: php@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:33885] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/B7-62408-77E39E05 for ; Sun, 06 Jan 2013 04:06:01 -0500 Received: (qmail 9360 invoked by uid 1009); 6 Jan 2013 10:05:56 +0100 Received: from 209.85.223.180 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/16386. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.223.180):. Processed in 0.096634 secs); 06 Jan 2013 09:05:56 -0000 X-Antivirus-MYDOMAIN-Mail-From: php@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.223.180):. Processed in 0.096634 secs Process 9354) Received: from mail-ie0-f180.google.com (gmail@bof.de@209.85.223.180) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 6 Jan 2013 10:05:56 +0100 Received: by mail-ie0-f180.google.com with SMTP id c10so21410730ieb.39 for ; Sun, 06 Jan 2013 01:05:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.43.114.135 with SMTP id fa7mr42973534icc.21.1357463154671; Sun, 06 Jan 2013 01:05:54 -0800 (PST) Received: by 10.50.36.4 with HTTP; Sun, 6 Jan 2013 01:05:54 -0800 (PST) Received: by 10.50.36.4 with HTTP; Sun, 6 Jan 2013 01:05:54 -0800 (PST) In-Reply-To: References: <19D80B01-BE88-4119-8A15-B631A96060E5@mrclay.org> <50E8AA4D.5090207@sugarcrm.com> <50E8C2BA.9080309@sugarcrm.com> <50E8CBD4.9090000@sugarcrm.com> <50E8EC66.7000800@sugarcrm.com> Date: Sun, 6 Jan 2013 10:05:54 +0100 Message-ID: To: internals Content-Type: multipart/alternative; boundary=bcaec51718fd2141f404d29b0592 Subject: Re: [PHP-DEV] [RFC] Alternative typehinting syntax for accessors From: php@bof.de (Patrick Schaaf) --bcaec51718fd2141f404d29b0592 Content-Type: text/plain; charset=ISO-8859-1 Was it considered to augment type hinting syntax - both in parameter lists and for the hinted property RFC - to permit giving multiple types at once? public DateTime|DateTimeImmutable $refdate; public Foo|NULL $object; // the issue discussed in the previous msgs function bar(array|string $arg) ... best regards Patrick --bcaec51718fd2141f404d29b0592--