Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49183 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45338 invoked from network); 30 Jul 2010 04:46:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2010 04:46:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=crocodile2u@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=crocodile2u@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: crocodile2u@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:37889] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/0D-03376-C29525C4 for ; Fri, 30 Jul 2010 00:46:37 -0400 Received: by wwb17 with SMTP id 17so1261289wwb.11 for ; Thu, 29 Jul 2010 21:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ESnTuQmZiWgI0YyiGX1IY22cgMFDIIwThcc6WgkMTDE=; b=X7TA4c2Tia2ViRTWF+0oKr3cAv0jLENTDJsuA3qPgiadq8vY6qYixFYM1N2ek9ppBX MXCzmQhMuYypHMOUfuk5spZ3i2r0+VOQfilYDJennSO35cS5vfoOatYQobvkq/So+yxp 5ni8wtAe1m/0wzyTnyvCgH/J8ip0J8JE0YzNI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xCezGplqRGg/ePT3dR1NHe29KC2O5y2z2ZXL5Q3TsvkTROME4yQ8hoJRWCMaHTD67s OLaKXZ+7Of611HDh+J8XXPLBGYjQIyK/DIHEFlmrsR/Wery4N8ukMB/gUV2bOhM86Nen zbTSgMQE10Ads80YWvKaIPYeKMtJIOt2yziF8= MIME-Version: 1.0 Received: by 10.227.157.200 with SMTP id c8mr1169849wbx.69.1280465193906; Thu, 29 Jul 2010 21:46:33 -0700 (PDT) Received: by 10.227.151.196 with HTTP; Thu, 29 Jul 2010 21:46:33 -0700 (PDT) In-Reply-To: References: Date: Fri, 30 Jul 2010 08:46:33 +0400 Message-ID: To: Josh Davis Cc: Felipe Pena , internals Content-Type: multipart/alternative; boundary=0016e65b5ec607b276048c93897b Subject: Re: [PHP-DEV] [RFC] Return type-hint From: crocodile2u@gmail.com (Victor Bolshov) --0016e65b5ec607b276048c93897b Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable +1 for "one could use the full qualified name to refer to the class name". Making the developer care about the case of characters in one special case = - that's the sort of changes that lead to chaos. Remember that type conversio= n works in a case-insensitive manner and so does most of the language constructs: (int) $x =3D=3D=3D (INT) $x intvav($x) =3D=3D=3D INTVAL($x) and so on 2010/7/29 Josh Davis > On 29 July 2010 13:57, Felipe Pena wrote: > > My suggestion (I guess already told it in some mail...) is to > > identify the native php type just when it's lowercased (case-sensitive)= . > > Alternatively, one could use the full qualified name to refer to the > class name, e.g. > > function expectsScalar(string $str) {} > function expectsObject(\string $obj) {} > > -JD > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =F7=C9=CB=D4=CF=D2 --0016e65b5ec607b276048c93897b--