Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33683 invoked from network); 17 Apr 2008 17:32:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2008 17:32:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:45058] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/9B-05127-FA987084 for ; Thu, 17 Apr 2008 13:32:33 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m3HHWQt9007520; Thu, 17 Apr 2008 19:32:27 +0200 Date: Thu, 17 Apr 2008 10:32:26 -0700 (PDT) X-X-Sender: derick@kossu.ez.no To: Felipe Pena cc: internals@lists.php.net In-Reply-To: <1208404255.5665.34.camel@pena> Message-ID: References: <1208404255.5665.34.camel@pena> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Type hints (parameter and return value) From: derick@php.net (Derick Rethans) 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. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org