Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37332 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12824 invoked from network); 30 Apr 2008 06:23:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2008 06:23:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.214.232 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 72.14.214.232 hu-out-0506.google.com Received: from [72.14.214.232] ([72.14.214.232:22690] helo=hu-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/4C-28930-95018184 for ; Wed, 30 Apr 2008 02:23:22 -0400 Received: by hu-out-0506.google.com with SMTP id 34so417186hud.13 for ; Tue, 29 Apr 2008 23:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=Azttz5jOmmCV31R4NrhAGWQMuYs9J4fQSV2Ub+14mqw=; b=ahSnwFCuxi34ynExAMPFoehQ393OigV/ol5cLTmZSqCYRmrCBJ4HQv0uKz5jY/eEVmxDaYYmppCkcxLnd/JgC5m9TDoWdKyMHiCZR63b6ekdOU4EFtew0y1XIMXfGNCDFNASqzvN4nKgN9PusPp8TF1+F1uDJUUPt1UtgvQwldk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=n/z1h/CZ6cLmK4sxknznNGQwARX29SW3+NuuGr6XUzGj6o9qV8VOigQM8El6450v031Es1q3GdKj1kQrfc8phBKhNK6iJlSW/TvmrqJqtGAtsfF8ZzfDKStPU/vyUZYIrPASg2kd0Dc7daJpO8h4XWD9CpwBUO87ke2lvEdSQfA= Received: by 10.66.223.2 with SMTP id v2mr7510909ugg.18.1209536597887; Tue, 29 Apr 2008 23:23:17 -0700 (PDT) Received: by 10.66.219.9 with HTTP; Tue, 29 Apr 2008 23:23:17 -0700 (PDT) Message-ID: <9b3df6a50804292323v615ede7xb5143e93dd430c49@mail.gmail.com> Date: Wed, 30 Apr 2008 09:23:17 +0300 To: "Jessie Hernandez" Cc: "Sam Barrow" , "Nathan Nobbe" , "=?UTF-8?Q?David_Z=C3=BClke?=" , "Alain Williams" , internals@lists.php.net In-Reply-To: <4817D5E6.3010606@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_278_18345004.1209536597924" References: <1209137410.6642.9.camel@sbarrow-desktop> <1209150944.20639.24.camel@sbarrow-desktop> <7dd2dc0b0804251224s750679acn169637efbd8653fa@mail.gmail.com> <1209151505.20639.25.camel@sbarrow-desktop> <20080425231305.GC14490@mint.phcomp.co.uk> <9484717D-2EC6-44FF-93C8-1A9911294AF6@bitxtender.com> <7dd2dc0b0804261524l22237b58tfb9d0a341ab77233@mail.gmail.com> <1209482524.3257.9.camel@sbarrow-desktop> <4817D5E6.3010606@gmail.com> Subject: Re: [PHP-DEV] Return type hinting patch From: arvids.godjuks@gmail.com ("Arvids Godjuks") ------=_Part_278_18345004.1209536597924 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm +1 for this syntax function int myfunction(int $param) { return $someint; } C/C++ like, easy to understand And bad idea about making a return type "function" - looks very useless and will not be used a lot. Work with objects with methods returning an object of some kind, then you can do $object->method()->method2()->method3(); P.S. I think this thread should be merged with function param type hinting because they come together and should be implemented together, ------=_Part_278_18345004.1209536597924--