Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58876 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78104 invoked from network); 12 Mar 2012 14:01:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2012 14:01:21 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; 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: arvids.godjuks@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:54714] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/F9-20445-0B10E5F4 for ; Mon, 12 Mar 2012 09:01:21 -0500 Received: by werh12 with SMTP id h12so3937736wer.29 for ; Mon, 12 Mar 2012 07:01:18 -0700 (PDT) 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=vOZwsVOsUUW0NaFW4N7PvZix+DNZ0emYsSPN35CCrL4=; b=rOvOQZvSD11cGvHSXqEqLy393xOK90dwL5uk0bUOJGTT4P1Vkt7pBznYbSL2BtqlF0 paD5Ej89k6EafsS+PFgk/20DCjC9wP9MUUy4cMrybJ2a7CnfQmzY5XSjPPlfviYJ9FA4 9QsbHbvbkJxofKOj7Q5a6DR32j2ewGbZdJoesGorD+zFCc7XZFtUH8rxTCTVuPjazOTF Brw4nKt3LZ85/1EHDwQrGXvpXus+jtzBjOuesPUYWKJ/9GxfIhiVcREQwW+sWsMSokGu DTNa8BpUiYOnXrPA2j5oFx0s/3V5jjYDX3sKMDFgyaqkaiUWkTAC7X21DuXK6K/DdI+w WvDw== Received: by 10.180.96.168 with SMTP id dt8mr17287674wib.18.1331560877910; Mon, 12 Mar 2012 07:01:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.117.1 with HTTP; Mon, 12 Mar 2012 07:00:56 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Mar 2012 16:00:56 +0200 Message-ID: To: Lazare Inepologlou Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d0442880e1fe99104bb0c2db7 Subject: Re: [PHP-DEV] [POC - Patch] Scalar Type Hinting - A-La zend_parse_parameters From: arvids.godjuks@gmail.com (Arvids Godjuks) --f46d0442880e1fe99104bb0c2db7 Content-Type: text/plain; charset=UTF-8 2012/3/12 Lazare Inepologlou > > I'm not sure about you, but I don't wanna see that kind of thing > eventually making it's way into the language > > Me neither. All I am saying is that, since int|null is already here from > the back door, I think it should be properly supported. > There is no int|null at the moment, and should not be. You can pass anything - object, array, string, bool, int, float resource, callable - they all are accepted and are checked in function body if it's writer wrote that code. Hint should provide a hint for a single type, or hint doesn't belong there. --f46d0442880e1fe99104bb0c2db7--