Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37132 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36467 invoked from network); 18 Apr 2008 11:50:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2008 11:50:25 -0000 Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 208.70.128.55 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 208.70.128.55 smtp-gw29.mailanyone.net Received: from [208.70.128.55] ([208.70.128.55:45083] helo=smtp-gw29.mailanyone.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/CC-54733-BFA88084 for ; Fri, 18 Apr 2008 07:50:19 -0400 Received: from mailanyone.net by smtp-gw29.mailanyone.net with esmtpsa (TLSv1:RC4-MD5:128) (MailAnyone extSMTP sam@sambarrow.com) id 1Jmp6d-0005zM-5v; Fri, 18 Apr 2008 06:50:16 -0500 To: RQuadling@GoogleMail.com Cc: Arvids Godjuks , Jarismar Chaves da Silva , Derick Rethans , Felipe Pena , internals@lists.php.net In-Reply-To: <10845a340804180433p46b4fcdv8abd5c404e819f8f@mail.gmail.com> References: <1208404255.5665.34.camel@pena> <4807DA85.7090108@adplabs.com.br> <9b3df6a50804180022o22dabf92v906d6943c853e78@mail.gmail.com> <10845a340804180433p46b4fcdv8abd5c404e819f8f@mail.gmail.com> Content-Type: text/plain Date: Fri, 18 Apr 2008 07:47:46 -0400 Message-ID: <1208519266.14288.0.camel@sbarrow-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Type hints (parameter and return value) From: sam@sambarrow.com (Sam Barrow) On Fri, 2008-04-18 at 12:33 +0100, Richard Quadling wrote: > On 18/04/2008, Arvids Godjuks wrote: > > +1 for strict types. > > > > That way it will be simple: > > * Don't need - then don't use at all > > * You need it - you use it fully. > > > > One thing than left to clearfy - do we allow to hint only part of args or do > > we go the road "if hint args, then hint them all!" (I'm personaly for second > > one - be strict) > > > > It may be that a parameter CAN be mixed, so a lack of a type hint > should be supported even if strict type hinting is used/implemented. > Maybe a type hint of mixed? > Of course; we don't make type hinting necessary, just type the variable name with no type hint as you would now and no type check is performed. > -- > ----- > Richard Quadling > Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 > "Standing on the shoulders of some very clever giants!" >