Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78696 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58910 invoked from network); 5 Nov 2014 01:08:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2014 01:08:16 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.47 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.218.47 mail-oi0-f47.google.com Received: from [209.85.218.47] ([209.85.218.47:52713] helo=mail-oi0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/01-54119-F7879545 for ; Tue, 04 Nov 2014 20:08:16 -0500 Received: by mail-oi0-f47.google.com with SMTP id a3so10575153oib.6 for ; Tue, 04 Nov 2014 17:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=NTj3IMpiOjZULVipcrpzqkn6PL6d/fvFb8U5RT4DpHk=; b=x3ebzSB10pIvl0rSxA1lwoKla1HWnr+eSqTHaA+950GGQ4dzFyiyZ/WHSU478IH3Tw qyFpmt987oXlmGkSD5ogT06oRA8AyrYOrU82HyQWwh2k8sh+OsSvWgS+lSeuBvGX/tBS wG07+soro9mnrLWCog9bhvTJz2NZ58UxIeNGmcX7R06fyG17RjNnP7HoyrrN4X5jO21G v1VzGOKGd0+sPiDK+3tbSvNTBEZycz0Nrjq/65ona/DPiwAOBvkMZuv81gBk99KhWIiF s6qSsPkCiGETrGgr5Ior53pENdkdB5fYX8izDk8xbQ3eZ+eYtlsX5EWtbKR1ichwTdD4 E41A== MIME-Version: 1.0 X-Received: by 10.60.102.211 with SMTP id fq19mr46476026oeb.2.1415149693218; Tue, 04 Nov 2014 17:08:13 -0800 (PST) Sender: morrison.levi@gmail.com Received: by 10.76.159.163 with HTTP; Tue, 4 Nov 2014 17:08:13 -0800 (PST) In-Reply-To: <545977E1.2060700@sugarcrm.com> References: <002601cff777$eb923430$c2b69c90$@tutteli.ch> <000601cff80a$972e0250$c58a06f0$@tutteli.ch> <5458937F.9020304@sugarcrm.com> <545910F1.8030904@sugarcrm.com> <859A97F0-7C58-406A-857B-557F8AA657AD@ajf.me> <545917A2.6000206@lerdorf.com> <545977E1.2060700@sugarcrm.com> Date: Tue, 4 Nov 2014 18:08:13 -0700 X-Google-Sender-Auth: osMpiB7JABSjwz5GSua0s77EkNM Message-ID: To: Stas Malyshev Cc: Rasmus Lerdorf , Andrea Faulds , Leigh , Robert Stoll , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Types on the right or on the left From: levim@php.net (Levi Morrison) On Tue, Nov 4, 2014 at 6:05 PM, Stas Malyshev wrote: > Hi! > >> Except `static function()` and `static function foo()` already have >> meaning, and if we allowed static return types (very possible) that >> would be ambiguous. This syntax is a no-go. > > If it is possible, why it's not the part of the RFC? Probably because > there's not much place where it would make sense. Actually it's because I don't have the time to verify that it wouldn't violate type rules and implement it. There is no other reason.