Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37131 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29109 invoked from network); 18 Apr 2008 11:33:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2008 11:33:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.146.177 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 209.85.146.177 wa-out-1112.google.com Received: from [209.85.146.177] ([209.85.146.177:34858] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/5B-54733-90788084 for ; Fri, 18 Apr 2008 07:33:30 -0400 Received: by wa-out-1112.google.com with SMTP id l24so738073waf.17 for ; Fri, 18 Apr 2008 04:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=MUF4y2LetVRAVCh9jRbSbFqIF/FFWY3+4if49n+f1DQ=; b=kmjcrLUwTRE3/Ctl7r/PANQ2X2uLyHkobmFZhFkuwSXPrFO/V0HoCIlOz23KHJkbFC73yfbwW8C/HhfYgz9cbpW2vhY9L4yw0HwGaI7cDHlaXErVFS9sqptEw4zVVg+nD6X2K22j2m2r/QWT07gfWf9/ZbmeIJ0pzT8ZS/UfHts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lEsh57OiDeVd4flmQh4RfpyenJD/yMbCohe79J25KYQ7CUjCd0GUMdOWMr28UKzK7uiDGvAiAik9//fLzW9rD5dKGg+QHZPIx8cQAVuRaPcgDEK07Xc7po3MTLuUb2cfuw6jELrZNFA2z2BEc5Bb7aXRkwUrQfTqER7IHSB+psw= Received: by 10.115.54.7 with SMTP id g7mr2294917wak.212.1208518407318; Fri, 18 Apr 2008 04:33:27 -0700 (PDT) Received: by 10.114.209.15 with HTTP; Fri, 18 Apr 2008 04:33:27 -0700 (PDT) Message-ID: <10845a340804180433p46b4fcdv8abd5c404e819f8f@mail.gmail.com> Date: Fri, 18 Apr 2008 12:33:27 +0100 Reply-To: RQuadling@GoogleMail.com To: "Arvids Godjuks" Cc: "Jarismar Chaves da Silva" , "Derick Rethans" , "Felipe Pena" , internals@lists.php.net In-Reply-To: <9b3df6a50804180022o22dabf92v906d6943c853e78@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1208404255.5665.34.camel@pena> <4807DA85.7090108@adplabs.com.br> <9b3df6a50804180022o22dabf92v906d6943c853e78@mail.gmail.com> Subject: Re: [PHP-DEV] [RFC] Type hints (parameter and return value) From: rquadling@googlemail.com ("Richard Quadling") 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? -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"