Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 99A76200BA5 for ; Wed, 19 Oct 2016 12:43:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9833F160AEA; Wed, 19 Oct 2016 10:43:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E0625160ADE for ; Wed, 19 Oct 2016 12:43:14 +0200 (CEST) Received: (qmail 40312 invoked by uid 500); 19 Oct 2016 10:43:14 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 40298 invoked by uid 99); 19 Oct 2016 10:43:13 -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; Wed, 19 Oct 2016 10:43:13 +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 8FD35C0FB9 for ; Wed, 19 Oct 2016 10:43:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.812 X-Spam-Level: * X-Spam-Status: No, score=1.812 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=asert-com-au.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id U06Q1qZOkf43 for ; Wed, 19 Oct 2016 10:43:10 +0000 (UTC) Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 80A965F647 for ; Wed, 19 Oct 2016 10:43:10 +0000 (UTC) Received: by mail-io0-f173.google.com with SMTP id r30so27080927ioi.1 for ; Wed, 19 Oct 2016 03:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asert-com-au.20150623.gappssmtp.com; s=20150623; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to; bh=qGiWNjLf3saWutic7NTGUUNUIwUererGdbUq9AmOO0M=; b=ijPP+1m+AzmJnpKjfOtC2hzLs/akk7yAArF7kSyVxXqpS/uj7II5Xq13Z3f2kIKW7+ FqfWS19sWkc466T0My3VKSjwbVbb7YXf0NK6F2qVvsiWBZM5RX1iKnj0ewhD0xMJT5M+ Ei4No0bHVgfl3YTtckyUaV2j/lA22QWq7K2DZnpSI4Uaz9fvmUz4FqsKXzA8hssm0rPp IcEuF8wqkWskR6/28Re5ESAT24nFWQh6OOzx8ZgE9hUv+5FpPD6ey5gfcmNCFK9YdeY0 MKo5EtI15gIzyj9IYRmSUgP+TFYhejTzW5iAAdaK5YPqZbeWweBiOQd+JXyi5+jw/1UE v/Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to; bh=qGiWNjLf3saWutic7NTGUUNUIwUererGdbUq9AmOO0M=; b=WsYRTJK6Hw7lWQU/RouRiTjC23wCIoxo8Z89+L6ipf+50T8E65QL9fS60v+WqNixv6 SB18LM/UI2JAqa2aLVDiKEUaAuEHFgEiPV7jqsTljDgrwY+z2Z0CWw+ObEMM5T7eIss6 LIT82FOwSXYy2Gyf9VeecGTgdE2eqMOee4DyWleINPUNMP8aYV4MD0RCM09LDEEObmmF NGnr/nSgi0akAFZXzjgrG5LuaYMB70LguFWednakTrDFyXRmIpnto4i838lk38idc3my HdKwoMNrx/uzNCN9G8JD8I4g5h7RO9hpJBd0qxKlrvUKQx/W54JGQ8eEAkQpVHn3ldPQ bp9Q== X-Gm-Message-State: AA6/9RnffeVwS/aVIZvWemBrDLukbFgevKdQpKurETDf3LfMoWqhrmt3dMKpLUce8QvqEXKGXA2VPBzhAv+NlQ== X-Received: by 10.107.157.14 with SMTP id g14mr6612212ioe.70.1476873781986; Wed, 19 Oct 2016 03:43:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.46.158 with HTTP; Wed, 19 Oct 2016 03:43:01 -0700 (PDT) Reply-To: paulk@asert.com.au In-Reply-To: References: <5806CC8E.2080308@gmx.org> <1476872589837-5736195.post@n5.nabble.com> From: Paul King Date: Wed, 19 Oct 2016 20:43:01 +1000 Message-ID: Subject: Re: Lambda expression for Groovy 3 To: dev@groovy.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Wed, 19 Oct 2016 10:43:15 -0000 On Wed, Oct 19, 2016 at 8:25 PM, Guillaume Laforge wrote: > That's what I thought too. > Although there's one :: case that .& doesn't support in Groovy. > (details escape me at this point as I'm in a hurry to go & grab lunch :D) I think these are the references you had in mind Guillaume: https://issues.apache.org/jira/browse/GROOVY-7772 https://github.com/apache/groovy/pull/287 There is some useful discussion but also a final comment that a bit more work is required over and above the proposal in that PR. Cheers, Paul. > On Wed, Oct 19, 2016 at 12:23 PM, daniel_sun > wrote: >> >> Hi Jochen, >> >> I plan to map Java's *::* to Groovy's *.&*, the following code is ok >> now. What do you think about it? >> >> [1, 2, 3].stream().forEach(System.out.&println) // object method, >> [1, 2, 3].stream().forEach(System.out::println) >> [1, 2, 3].stream().forEach(Objects.&requireNonNull) // class method, [1, >> 2, >> 3].stream().forEach(Objects::requireNonNull) >> >> Cheers, >> Daniel.Sun >> >> >> >> -- >> View this message in context: >> http://groovy.329449.n5.nabble.com/Lambda-expression-for-Groovy-3-tp5736169p5736195.html >> Sent from the Groovy Dev mailing list archive at Nabble.com. > > > > > -- > Guillaume Laforge > Apache Groovy committer & PMC Vice-President > Developer Advocate @ Google Cloud Platform > > Blog: http://glaforge.appspot.com/ > Social: @glaforge / Google+