Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52084 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69026 invoked from network); 29 Apr 2011 09:09:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2011 09:09:27 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:64797] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/F5-29189-6408ABD4 for ; Fri, 29 Apr 2011 05:09:27 -0400 Received: by eyf5 with SMTP id 5so1108586eyf.29 for ; Fri, 29 Apr 2011 02:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=WvkQQ4GBsP0r9YGJfv1Q+0ozDn7SbQ3UBO/Hduy2fbs=; b=G2o7+5zsNXTurnHcIxnWgClNIij5BWChyQX+0vRdYuR8o2TfhYZCuXSO9uQaNNlYHL rRjb1TChtsa0qIFTH8kosLtYa06wXMtpjac8zEuOVscG1XGhTUnU73A8NBIioVy3O8Dq 7Iri8FLgfLTo/ox+IGg8YfjgqsRkJRwzIJgs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=WZ/mF/WYeKcwPmpRnStFsDR0hWyl4IaG2A5Rao/obDAl09L6CW2W+dmxJLVQA0MMjs IO4X5da3gYpbRlnUiDYmXlEqu9N831btKnuY+E77VCYMygm5BhIzeH9k7VwIhdJxTGpt jibJbb3v0YZEWK1qMl0ripysR4rSSETxuC5kQ= MIME-Version: 1.0 Received: by 10.14.124.137 with SMTP id x9mr2043235eeh.231.1304068163712; Fri, 29 Apr 2011 02:09:23 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.14.127.79 with HTTP; Fri, 29 Apr 2011 02:09:23 -0700 (PDT) In-Reply-To: <4DBA46FD.5090106@sugarcrm.com> References: <4DB923E6.3020307@sugarcrm.com> <4DB9A7BE.6010307@sugarcrm.com> <20110428181630.GA8496@phcomp.co.uk> <4DBA46FD.5090106@sugarcrm.com> Date: Fri, 29 Apr 2011 11:09:23 +0200 X-Google-Sender-Auth: DWFsCLyIRtdTCBKhaUuIFOvOhh4 Message-ID: To: Stas Malyshev Cc: internals Content-Type: multipart/alternative; boundary=e0cb4e6fff6fa9367204a20b07aa Subject: Re: [PHP-DEV] [RFC] Return type-hint From: info@tyrael.hu (Ferenc Kovacs) --e0cb4e6fff6fa9367204a20b07aa Content-Type: text/plain; charset=UTF-8 > > > Which might be acceptable for some applications. For those where it is not >> then this feature may not be useful. This is an *optional* declaration, >> not mandatory - so if it does not suit your purpose -- don't use it. >> > > You are talking about pretty big change in language nature - introducing > strict typing. "It's just option, don't use it if you don't want" doesn't > really sound good in this case. If it's in the language, it should make > sense and sit well with the rest of the language. > > sorry, where would we intrudoc strict typing? as I mentioned before, the proposed implementation would "sit well with the rest of the language" in this aspect. eg. would work the same as the argument type hinting does. what Alain said, that there would be a possible to use the provided type information before actually calling the function. the fact that HipHop can use this information and Zend not (yet, or only for trivial cases) wouldn't change this fact, or the language itself. Tyrael --e0cb4e6fff6fa9367204a20b07aa--