Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69276 invoked from network); 7 Apr 2008 13:58:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2008 13:58:33 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.29 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: 74.125.46.29 yw-out-2324.google.com Received: from [74.125.46.29] ([74.125.46.29:46546] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/E3-50465-8882AF74 for ; Mon, 07 Apr 2008 09:58:32 -0400 Received: by yw-out-2324.google.com with SMTP id 5so222503ywb.83 for ; Mon, 07 Apr 2008 06:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=2rgXuzR7+i9GDW5i4sYPYGROY7zh/UP26gAvEkmJhTo=; b=Ekc8xMrjjXJ+91ilGcOIr/Wkm/BqKTcZCerYLs7Ji9HjK5GZojJUQwRwFzoGAdR2aFFvUMXxBa6qjyqRUbGEEAy9QYRII94pa1GzTvYzVBGX7kOHbrFAnmDq1ReiOJgWjJrtrhlFPISx4VPzlxZuwlZ0bqg/vCUwqtz/7UsjwbI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=HsLrBPs0AFRnAwFe8SBaUK25Mb+ghrHOpDjDXAIlDJSMbNoNGF1KUPpC2F2nDEzacM5bfwDMzHNlSp5kdYJac35Pw6ZKLFYHM5ckDIvyB5sdWwTD9cZVQ4Dnp917vckqAUZZ9SfEEp1lxvt3HjTKP1rB3wm2VKOhvw451iCa7qg= Received: by 10.150.91.4 with SMTP id o4mr2713017ybb.226.1207576709916; Mon, 07 Apr 2008 06:58:29 -0700 (PDT) Received: from ?10.0.18.8? ( [157.86.206.62]) by mx.google.com with ESMTPS id e76sm9047870hse.0.2008.04.07.06.58.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Apr 2008 06:58:27 -0700 (PDT) To: Derick Rethans Cc: Mike Lively , internals@lists.php.net In-Reply-To: References: <1207539695.5736.42.camel@pena> <8d7b8c130804062157j60871630r6c3b27c4d3245cb9@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 07 Apr 2008 10:57:56 -0300 Message-ID: <1207576676.5331.49.camel@felipe> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Return type hints From: felipensp@gmail.com (Felipe Pena) Em Seg, 2008-04-07 às 15:44 +0200, Derick Rethans escreveu: > On Sun, 6 Apr 2008, Mike Lively wrote: > > > On Sun, Apr 6, 2008 at 8:41 PM, Felipe Pena wrote: > > > > > - PHP types > > > > > > function (string) foo(...) { } // Unicode string too > > > function (object) foo(...) { } // Strict > > > function (array) foo(...) { } // Strict > > > function (bool) foo(...) { } // Strict > > > function (int) foo(...) { } // Accepts numeric string > > > function (double) foo(...) { } // Accepts numeric string > > > > > > If there ever were return type hinting in PHP I don't think it would be wise > > to support PHP Types unless parameter hints were changed to support them. > > It's just inconsistent. > > Right, this shouldn't even be on the agenda before we have scalar type > hints. So, perhaps you can make a patch for that first Felipe? I don't thought this before! Sure, i'll try provide a patch. Thanks. -- Regards, Felipe Pena.