Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49169 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72332 invoked from network); 29 Jul 2010 11:57:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2010 11:57:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:45132] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/00-06514-C9C615C4 for ; Thu, 29 Jul 2010 07:57:17 -0400 Received: by bwz11 with SMTP id 11so168929bwz.29 for ; Thu, 29 Jul 2010 04:57:13 -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=QCHj5pyMYK2fZB7SFANXShh8YrIPpb4/99OWk0yKeI8=; b=GmM3AUPxK7kgXMmirD3pYL83wbKK6pUbJyfpTVRvD3Ylvnp8GPoRC9jGbNHgrK/vuI qIIeM6UV9Sw3PNwlAL/B8f0YyxG/93JnK95tzAZcpsnbe1W98FrqWrDVlJBmM5i3pB5d kjDNhmEgT7+b5S6oIq/CkpW2/va99CF51Z+wk= 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=LzBo0lqCooJ3IWQU4za26jXgDGpAvQIVlUYeKXFpYk0puuyW9FtT+LfxmvghQeBvvf yWj+8Da0iE4XZNG26JNFl6eBaYE50RvS2tLdFnHsxiwidxwwoGOcAj6CLm/Sbqyi+u/i XLBIai2RnT1SkOucohFn+aXo17A+AePoGmjEo= MIME-Version: 1.0 Received: by 10.204.59.9 with SMTP id j9mr6656844bkh.150.1280404632648; Thu, 29 Jul 2010 04:57:12 -0700 (PDT) Received: by 10.204.71.203 with HTTP; Thu, 29 Jul 2010 04:57:12 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Jul 2010 08:57:12 -0300 Message-ID: To: Ferenc Kovacs , Ilia Alshanetsky Cc: Daniel Egeberg , internals Content-Type: multipart/alternative; boundary=001636eefc8a4c3dac048c856f24 Subject: Re: [PHP-DEV] [RFC] Return type-hint From: felipensp@gmail.com (Felipe Pena) --001636eefc8a4c3dac048c856f24 Content-Type: text/plain; charset=UTF-8 Hi 2010/7/29 Ferenc Kovacs > >> Hi, I would love this feature. > >> But I have some concerns. > >> AFAIK you can declare classes with the name int ,scalar, etc. so > >> hinting anything else than class names can be ambiguous. > >> Or we have to set these keywords as reserved, so nobody could declare > >> classes with such names. > > > > Weren't they already made reserved with the parameter type hinting patch? > > > > As I said: > > > Maybe this was resolved with the last scalar type hinting patch, which > > got merged to the trunk, I don't know. > Currently on trunk version, if you use the php native types as type-hint it will check for the php type, not the user class. Trunk: