Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68092 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17947 invoked from network); 10 Jul 2013 16:49:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2013 16:49:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.42 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.42 mail-pa0-f42.google.com Received: from [209.85.220.42] ([209.85.220.42:49095] helo=mail-pa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/5B-50933-8A09DD15 for ; Wed, 10 Jul 2013 12:49:44 -0400 Received: by mail-pa0-f42.google.com with SMTP id rl6so6928226pac.15 for ; Wed, 10 Jul 2013 09:49:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=HXBsuoUqzuHR+oIWruGXUNS5Hv/h+2I8pGJwReKkhCE=; b=D+v5TYZlrhpk785q1cdLE2xYhoH7rbR/SEYR59kAFBKcH6HsoaQdUZOFmXfp6s9ptN YfF78GP1Z73YDvF6AR9YEMDeDwOc+zaTF6NoIz4auCge9RsCGdcEZ3IO06o1JoFe4ZRt hOrsvaE+OdqzcO0EwKI+9ApQUOQD8THUpadmrGKPpXXuaHKueO+Zy6lPH026r0mDnqLX 34OJFZ9DaviqLdR+VqmT1DGjLpfsM7X7lfB5gXClQQS1fB7hYdLPknnzR+LmhSSoWkx9 G4mS3qwkIv4JnVd4vC1cuwqkx3f9utJhZD9iuMiy3KP2BmdSL6bg0vjH9udpkETHxlOl l7+Q== MIME-Version: 1.0 X-Received: by 10.69.8.65 with SMTP id di1mr23894701pbd.32.1373474981334; Wed, 10 Jul 2013 09:49:41 -0700 (PDT) Sender: php@golemon.com Received: by 10.70.132.105 with HTTP; Wed, 10 Jul 2013 09:49:41 -0700 (PDT) X-Originating-IP: [173.252.71.189] In-Reply-To: References: <1372258135.2410.22.camel@guybrush> Date: Wed, 10 Jul 2013 09:49:41 -0700 X-Google-Sender-Auth: clHmkSWafITM-K_JHHwfbmKOGdQ Message-ID: To: Florin Patan Cc: =?ISO-8859-1?Q?Johannes_Schl=FCter?= , Ferenc Kovacs , Patrick ALLAERT , Julien Pauli , Maxwell , Sherif Ramadan , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b5d48dc5ee65e04e12b1056 X-Gm-Message-State: ALoCoQmQKF5cvh2U1nL/SSGKdornkUp6taheA3cqD04Cw+QCR95mgoeagnAvhDwhsNpLaOkd6H5E Subject: Re: [PHP-DEV] Request for comments - new PHP feature: return typing From: pollita@php.net (Sara Golemon) --047d7b5d48dc5ee65e04e12b1056 Content-Type: text/plain; charset=ISO-8859-1 > While playing with GO I did found that this type of syntax is a bit better. > Yeah, we played with a few formats (including the one originally proposed and found some issues (like specifying closures as return types: function function($foo, $bar) ($foo) { return makeCallback($foo); } Even if you add <> around the return type, that's still a bit.. weird. > Since you brought up the discussion, would you think it would make > more sense to actually start and integrate HHVM into PHP rather that > patching it up? > HHVM isn't built on PHP (apart from a few very small pieces) so "integrating" it would mean, well... replacing it. It's like suggesting to integrate linux into windows. :p > Or better yet, rewrite it with a HH VM in mind? > I do think we (again, wearing my PHP hat) should look at plugging in LLVM or something similar. In my perfect world PHP and HHVM both have enough to offer that users get to use the tool most appropriate for their needs. For HHVM that means working on the build system and the runtime. For PHP that means speeding up and extending the language. We'll never match because the two projects don't agree on every piece of philosophy, but we can try to keep close enough to avoid major issues for end users. -Sara --047d7b5d48dc5ee65e04e12b1056--