Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68086 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55492 invoked from network); 10 Jul 2013 08:08:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2013 08:08:03 -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.223.169 as permitted sender) X-PHP-List-Original-Sender: florinpatan@gmail.com X-Host-Fingerprint: 209.85.223.169 mail-ie0-f169.google.com Received: from [209.85.223.169] ([209.85.223.169:43454] helo=mail-ie0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/70-50933-1661DD15 for ; Wed, 10 Jul 2013 04:08:01 -0400 Received: by mail-ie0-f169.google.com with SMTP id 10so14708515ied.14 for ; Wed, 10 Jul 2013 01:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=M8WnVSGoXcha1eBkyorRhaYEnn4K2DtiF6MQ7822D/A=; b=02fq9fWEds17ZBKL5lF2t/sm8TbsTArLUmjcUdSToSBS989fHI8JzLLScfcOPe8h2C dQroyhjKbhwR8lrrfJ0c87e3wWRJhmyBvtZYxw3g/aDj5PCWabZ7EvilMvvY8JbtNZyZ cUSFP7g9LQUyKRoNmaX5FIXevV00gXFdoXSu9KuFygF+8ubIRgAONzobFilJ+IBvosVj IkshYLsNoTmOYFDhkj3UPh+PAeRveZmohHrr8ffacZVLJxkqN9RvigoGjDQwmpdmS0AP 9/scgCF2oXv4Qik7yHrPbJzWLVzlMdxsR2R4giKh1JYTIfz2lX8O5138tiLJL14Ucs7o R/lQ== X-Received: by 10.42.73.66 with SMTP id r2mr1043715icj.9.1373443678652; Wed, 10 Jul 2013 01:07:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.114.73 with HTTP; Wed, 10 Jul 2013 01:07:28 -0700 (PDT) In-Reply-To: References: <1372258135.2410.22.camel@guybrush> Date: Wed, 10 Jul 2013 10:07:28 +0200 Message-ID: To: Sara Golemon Cc: =?UTF-8?Q?Johannes_Schl=C3=BCter?= , Ferenc Kovacs , Patrick ALLAERT , Julien Pauli , Maxwell , Sherif Ramadan , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Request for comments - new PHP feature: return typing From: florinpatan@gmail.com (Florin Patan) On Wed, Jul 10, 2013 at 1:42 AM, Sara Golemon wrote: > I know this conversation kinda stopped a couple weeks ago, but I want to > throw into the ring that HHVM already has a syntax for return type hinting > and it'd be awesome if we (with my PHP hat on) brought the two > implementations together rather than take them further apart. > > In HHVM's case a function might look something like: > > function foo(SomeClass $bar, int $baz) : bool { > > } > Hi Sara, Thanks for the input. While playing with GO I did found that this type of syntax is a bit better. 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? Or better yet, rewrite it with a HH VM in mind? I know and fully understand it's a gigantic task but at some point in a software lifecycle there's only so much patching up you can do before you can't patch it anymore. Thanks. Best regards, Florin ---- Florin Patan https://github.com/dlsniper http://www.linkedin.com/in/florinpatan