Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67850 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84562 invoked from network); 26 Jun 2013 09:51:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2013 09:51:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=florinpatan@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=florinpatan@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.46 as permitted sender) X-PHP-List-Original-Sender: florinpatan@gmail.com X-Host-Fingerprint: 209.85.219.46 mail-oa0-f46.google.com Received: from [209.85.219.46] ([209.85.219.46:53860] helo=mail-oa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/10-18025-E99BAC15 for ; Wed, 26 Jun 2013 05:51:27 -0400 Received: by mail-oa0-f46.google.com with SMTP id h1so14730215oag.33 for ; Wed, 26 Jun 2013 02:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=eGRDAArJ8oTdFjYJYwd3rOfo+OqapmJLtiifO6nyi48=; b=k3T+ty6LH7fIJooUTfW/1ktRGhOfTxdzsNagXhmhCK2H4hGRynJCfqPfSZHkM9on6v Lh20blCme+rTI2WYzfx8f+8fo5cpKhJtvMFvHmWBRB6L48sJ08RwkKuagtmPC2ExJQ98 A71/x4j7bEeg2JlcJZ3W/2Mpx1NOEWqVhfIVoYCDl1QNgeAHeG/kRmmd3sBo8ckpjSxU Q2t+G7ou1p7cBKRs/Kq3HITb70J6S0ndKXJyRdzrF6BDGjhsEqQOWELKJIcQRUEGXKrq mW2DpAihM0EedRCU+tHk8eW4rcrCIX+/evniHP8zqBpBOfqSM5IBUkK81ibvpgyW6Wqv cbmw== X-Received: by 10.60.80.165 with SMTP id s5mr70278oex.55.1372240282685; Wed, 26 Jun 2013 02:51:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.18.161 with HTTP; Wed, 26 Jun 2013 02:50:52 -0700 (PDT) Date: Wed, 26 Jun 2013 11:50:52 +0200 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Request for comments - new PHP feature: return typing From: florinpatan@gmail.com (Florin Patan) Hello PHP internals, Currently PHP doesn't support what could be a good feature for code quality, return typing (or if you prefer to call it: return type hinting). Since the procedure says that before any real RFC should be done, the interest for this topic should be gauged, I've drafted something here: https://gist.github.com/dlsniper/5863012 The goals for this discussion are: - gauge the interest in having such a feature in PHP.NEXT - find weak spots in the draft - find potential problems with the suggested way of doing the implementation - determine if the advantages would outweigh the disadvantages and this should go forward as a RFC As you can see, the draft doesn't include any patch and since my C skills are mostly nonexistent, I currently can't provide one unfortunately. I would however love to do it with proper guidance from someone that could spare some of his/her time to help me out. This said, thank you very much for your time, consideration and feedback on this subject. Best regards, Florin ---- Florin Patan https://github.com/dlsniper http://www.linkedin.com/in/florinpatan