Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88110 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88736 invoked from network); 8 Sep 2015 00:56:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2015 00:56:01 -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.46 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.46 mail-pa0-f46.google.com Received: from [209.85.220.46] ([209.85.220.46:34632] helo=mail-pa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/C4-34134-F123EE55 for ; Mon, 07 Sep 2015 20:56:00 -0400 Received: by padhy16 with SMTP id hy16so105827538pad.1 for ; Mon, 07 Sep 2015 17:55:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=7f/ymvkfKBpM+ur+zFguYN0pJzCMx8ioLb2nxtoPaLg=; b=XjuEYgAeZ2thX2oh+R8DQRpglRNENajyubuZXiVfjSN8TXBy3SjH5JmkItoZwHqGF3 Qa4kb3ve/wAjLD/dqUgf/ZYOnmvjOAQuYNp/8yrY3Nce6n5x9wy8rsF8PxKRTG8fITDS iZxopJwi+gqTO73g1bhKjcdxPyid7SL66Hbr9Eke8UXyETUbvB5+2dRDEFNHA/SCKy5M 7jzcUIVZ6Z1ty9SdNe8RENnEfTXz6TUUG4zrKGlMR0pHDb96eLwBToVGozAqDWol/RNt 7Up74BoSHE5RsSw/GLHuP7fk/cODhzjSlLZ+SXDfbITgNgwMxhXF3xB0yEF8dGbeIAXN nb+g== X-Gm-Message-State: ALoCoQkmk6UlI6vE8GK495ouTcQF3400Nu7gychLynU87eKjEm+WF6ZsTwHK9yF/vt5TC8YL12oy X-Received: by 10.68.202.72 with SMTP id kg8mr51640681pbc.42.1441673754207; Mon, 07 Sep 2015 17:55:54 -0700 (PDT) Received: from [10.0.1.137] (c-73-189-247-124.hsd1.ca.comcast.net. [73.189.247.124]) by smtp.gmail.com with ESMTPSA id q5sm1105847pdc.65.2015.09.07.17.55.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Sep 2015 17:55:52 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (12H143) In-Reply-To: Date: Mon, 7 Sep 2015 17:55:51 -0700 Cc: =?utf-8?Q?Bj=C3=B6rn_Larsson?= , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <869870EE-6FAD-41C2-9C77-1868667E4FAE@golemon.com> References: <55EAB740.6080004@telia.com> <55EC1B77.6080708@telia.com> <28335322-EF2C-487D-99A8-2A624CAEAD99@golemon.com> To: Bob Weinand Subject: Re: [PHP-DEV] [RFC] [Discussion] Short Closures From: php@golemon.com (Sara Golemon) On Sep 6, 2015, at 18:19, Bob Weinand wrote: > Oh, I thought that feature to be Hack-only. Looks like I'm wrong and hence= looked at the wrong place. [I always heard Hack has short Closures, but nev= er was told HHVM had them too...] Semantics semantics semantics. Short closures *are* only supported by HHVM in Hack mode ( But as I see you use a T_LAMBDA_OP which is inserted by a token-pre-parser= before it's being analyzed by the real parser. Yes, and I regard it as a hideous abomonation. No offense taken for not imp= orting that piece of...art. > Wouldn't say we really could compare that. It's a lot of complication... I= f I remember correctly, we had a similar reason back then to reject my initi= al keywords as identifiers patch as it was using that type of approach. > Honestly, a %glr-parser bison directive would look cleaner here. But I'm n= ot sure if we want to go that route down as a LALR(1) has much more determin= istic performance characteristics... Josh Watzman, who's working on UVS for HHVM would have a few words to say ab= out that. None charitable to LALR parsers. :) -Sara