Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64604 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13005 invoked from network); 6 Jan 2013 14:00:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2013 14:00:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:39692] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/B0-04877-09389E05 for ; Sun, 06 Jan 2013 09:00:49 -0500 Received: by mail-la0-f42.google.com with SMTP id fe20so13145191lab.29 for ; Sun, 06 Jan 2013 06:00:46 -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=cauR8eQvTSyNQ7u11VvT6GV2dE4yhtw1dbfagqm/pqk=; b=lJbJrkFbPgASpFKvHzfqBCx6ZqxpFOHfddIjo+R0fWxhUgKvKWV3SSzkX+g6W+J+d1 9YyY/o7ynSMspNiy5Sa9mzBZJkbXZzXnDwpbUeAgsbH1QosFV/q9OLZ5f2c1/PjMyIce A4r0i7Jz7MKeSnrQbWm3VQlSp+M9RGshKNniRF+/zRCW06cPNjLsx3HQSJHM8J9h7hJa vv8qfH+nttCq4HJzUUjjxkqzAyGDtPlDvnc2sC17QYLXNPdaC2enMaEYBi/HNlDQ2nXA JBx/hqO3kHl/SNx0jufbGRMGmhpXdRDTMaPUf7BCE1dTWh8xUKn3quGks71ArP+OtixH 8BWw== MIME-Version: 1.0 Received: by 10.152.162.1 with SMTP id xw1mr55682627lab.3.1357480845948; Sun, 06 Jan 2013 06:00:45 -0800 (PST) Received: by 10.112.4.168 with HTTP; Sun, 6 Jan 2013 06:00:45 -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 15:00:45 +0100 Message-ID: To: Patrick Schaaf Cc: internals Content-Type: multipart/alternative; boundary=f46d042ef4a59cb65504d29f23bb Subject: Re: [PHP-DEV] [RFC] Alternative typehinting syntax for accessors From: nikita.ppv@gmail.com (Nikita Popov) --f46d042ef4a59cb65504d29f23bb Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jan 6, 2013 at 10:05 AM, Patrick Schaaf wrote: > 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 > That's an interesting idea (at least something worth discussion), but please in a different thread. Same goes to the initializers that were mentioned previously in this thread. Both things are related to this proposal, but only slightly, and should be discussed separately to keep things clean. Thanks :) Nikita --f46d042ef4a59cb65504d29f23bb--