Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37113 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80981 invoked from network); 17 Apr 2008 18:48:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2008 18:48:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=mark@dynom.nl; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mark@dynom.nl; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain dynom.nl does not designate 85.92.132.6 as permitted sender) X-PHP-List-Original-Sender: mark@dynom.nl X-Host-Fingerprint: 85.92.132.6 smtp1.duximus.nl Linux 2.5 (sometimes 2.4) (4) Received: from [85.92.132.6] ([85.92.132.6:55262] helo=smtp1.duximus.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/55-05127-78B97084 for ; Thu, 17 Apr 2008 14:48:40 -0400 Received: by smtp1.duximus.nl (Postfix, from userid 501) id 57B30B033D0; Thu, 17 Apr 2008 20:48:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on dux03.duximus.nl X-Spam-Level: X-Spam-Status: No, score=-2.5 required=1.8 tests=AWL,BAYES_00 autolearn=ham version=3.1.9 Received: from localhost (dux03.duximus.nl [127.0.0.1]) by smtp1.duximus.nl (Postfix) with ESMTP id D340DB033C8 for ; Thu, 17 Apr 2008 20:48:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at duximus.nl Received: from smtp1.duximus.nl ([127.0.0.1]) by localhost (dux03.duximus.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pD6FUWEmDtxs for ; Thu, 17 Apr 2008 20:48:30 +0200 (CEST) Received: from dux05.duximus.nl (unknown [85.92.132.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp1.duximus.nl (Postfix) with ESMTP id 58130B033B6 for ; Thu, 17 Apr 2008 20:48:30 +0200 (CEST) Received: from localhost ([127.0.0.1] helo=[192.168.0.52]) by dux05.duximus.nl with esmtpa (Exim 4.60) (envelope-from ) id 1JmZA0-0002xN-4Z for internals@lists.php.net; Thu, 17 Apr 2008 20:48:40 +0200 Message-ID: <48079B86.20307@dynom.nl> Date: Thu, 17 Apr 2008 20:48:38 +0200 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: PHP internals References: <1208404255.5665.34.camel@pena> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Type hints (parameter and return value) From: mark@dynom.nl (Mark van der Velden) Derick Rethans wrote: > On Thu, 17 Apr 2008, Felipe Pena wrote: > >> Now with both parameter and return value type hints. >> >> For parameter type hints, i have completed the actual implementation >> with the leftover php types: >> - string (binary string and unicode) >> - integer (accepting numeric string too) >> - double (accepting numeric string too) >> - boolean ('0', '1', true, false) > > I think that the typehints should be strict, if you don't want > strictness, don't use type hints. +1 - Mark