From users-return-3234-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Fri Feb 16 20:13:29 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A2F58180647 for ; Fri, 16 Feb 2018 20:13:28 +0100 (CET) Received: (qmail 2172 invoked by uid 500); 16 Feb 2018 19:13:27 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 2162 invoked by uid 99); 16 Feb 2018 19:13:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2018 19:13:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0DE0CC00B8 for ; Fri, 16 Feb 2018 19:13:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.702 X-Spam-Level: X-Spam-Status: No, score=-0.702 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id RLDEIxJ-ZylZ for ; Fri, 16 Feb 2018 19:13:26 +0000 (UTC) Received: from mx04lb.world4you.com (mx04lb.world4you.com [81.19.149.114]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C0D8E5F19C for ; Fri, 16 Feb 2018 19:13:25 +0000 (UTC) Received: from [84.112.214.51] (helo=[192.168.0.24]) by mx04lb.world4you.com with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.84_2) (envelope-from ) id 1emlRl-0003JZ-Ai; Fri, 16 Feb 2018 20:13:25 +0100 Subject: Inline "Closures" (again) To: users@groovy.apache.org, Jochen Theodorou References: <9cb56d52-86c8-e7fa-5680-f13c980d941d@gmail.com> <286B5C90-EE24-49CB-AB09-976B67F7645A@canoo.com> <83aaf594-8a7a-e747-afeb-56d2f89866f1@gmx.org> From: MG Message-ID: Date: Fri, 16 Feb 2018 20:13:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <83aaf594-8a7a-e747-afeb-56d2f89866f1@gmx.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-SA-Do-Not-Run: Yes X-AV-Do-Run: Yes X-SA-Exim-Connect-IP: 84.112.214.51 X-SA-Exim-Mail-From: mgbiz@arscreat.com X-SA-Exim-Scanned: No (on mx04lb.world4you.com); SAEximRunCond expanded to false Hi Jochen, just to be sure we are on the same page here: The inline "closure" support I currently envision, which basically is to attach the closure body "as is" to an existing language head construct, such as "if"/"for"/"while" could be achieved using a simple text macro. So its not really a closure, it is "just a (regular) block construct which gets a head supplied by the code from a user method". Cheers, mg