Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37071 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49340 invoked from network); 17 Apr 2008 15:17:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2008 15:17:21 -0000 Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.227 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 64.233.184.227 wr-out-0506.google.com Received: from [64.233.184.227] ([64.233.184.227:11048] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/29-05127-00A67084 for ; Thu, 17 Apr 2008 11:17:21 -0400 Received: by wr-out-0506.google.com with SMTP id 50so98658wri.2 for ; Thu, 17 Apr 2008 08:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=tMKTZ1NqWlPB7YxtvcTRLvAJq0gmCDQ91tWQ7YJsOl0=; b=dkHmTzMy9VIPJ/nuyxqRsqcCG6lGHuBSXMN1lzUOFGnzNFKooj/u+JXrSBAtE1+LPMHPSQDTq0oRozChsmX8eDL/NM+0ry+EwybJoYSCWMcKjHu7/pIU7SgXKzIh5Dl1q6WazLNnmPD6/RkzEKumJCjxWKPIGEvL/ekwEgBFIVk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q0Tx7d234bK31iXmPaPHn1AHhTcAg2R1A/ctnqHGNSaBX2+bS1vlVSNSEBBGhYHxlcBgjSuUNKeiK4jXxf1ilxXAZZCwtgB3NtWwVubLOo84bEljAhOmOJnuIjR2L7bJLUrIJdq9C9X+4dJo4VukKWT96GUo7WIT7UXBuatkRnM= Received: by 10.114.169.2 with SMTP id r2mr1606891wae.30.1208445436938; Thu, 17 Apr 2008 08:17:16 -0700 (PDT) Received: by 10.114.255.17 with HTTP; Thu, 17 Apr 2008 08:17:16 -0700 (PDT) Message-ID: Date: Thu, 17 Apr 2008 17:17:16 +0200 To: "Felipe Pena" Cc: internals@lists.php.net In-Reply-To: <46ccd1ab0804170742g142ed562t4f03339da549a820@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46ccd1ab0804170742g142ed562t4f03339da549a820@mail.gmail.com> Subject: Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value) From: paul.biggar@gmail.com ("Paul Biggar") Hi Felipe, Thanks for making the change. This is much more consistent. It remains that there is no 'scalar' or 'numeric' hint. Are you planning on including them? I also wonder about allowing NULL for an 'array' type hint. Is this acceptable? The patch seems to indicate it is. If so, why is this allowed? Thanks, Paul On Thu, Apr 17, 2008 at 4:42 PM, Felipe Pena wrote: > Hi. > > Well, thinking better about the behavior of type hinting, i decided to > change the proposal for strict type. I.e. don't accept numeric string > as an intenger, etc. > > If anyone wants use type hinting, i believe that it should be strict. > Otherwise, it makes more sense to not use it. > > Examples, patches and tests: http://wiki.php.net/rfc/typehint > > > -- > Regards, > Felipe Pena. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Paul Biggar paul.biggar@gmail.com