From dev-return-5116-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Sun Jul 22 18:25:15 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 4714B18062F for ; Sun, 22 Jul 2018 18:25:15 +0200 (CEST) Received: (qmail 80789 invoked by uid 500); 22 Jul 2018 16:25: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 80779 invoked by uid 99); 22 Jul 2018 16:25:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2018 16:25:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 477051A18B4 for ; Sun, 22 Jul 2018 16:25:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.13 X-Spam-Level: X-Spam-Status: No, score=-0.13 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id gxtwlzgADXPE for ; Sun, 22 Jul 2018 16:25:11 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D168D5F404 for ; Sun, 22 Jul 2018 16:25:10 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id v25-v6so13687483wmc.0 for ; Sun, 22 Jul 2018 09:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=5xSep3+jhUy44imUmoVZLrA0dBAHMByxt2VvIxExR98=; b=d4krbwqItjyVjnvl1is/WlOSHztNnFKeCE1dxexV2rjBGpQ4Xy4w8F13zZpulkZk6J fds/46dK7ZFDi85iyycOi9H78v+W4a+Hs0Spm1iYscDEb6xT2J8Vu/MbtqdVZIU/Vjk5 Hen0238FYifqWM/wHxUcs1JkWDw0aHS8trY1LBGIwjLNdIOZfRajj+9cy9CBf2kMdlGD SEJ8vsmtpeQpzwZyqh3kZCYxv7NyPUFceuE5myZRq88ycpR/YiNQkrCjjdFJDOi44m1X J1j4vcpasPRwKHeAjvSTV7fdB5EYad3Ssx562LvfPrAYjVPse8Tak70yyAYgO25Qh+qC HDDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=5xSep3+jhUy44imUmoVZLrA0dBAHMByxt2VvIxExR98=; b=uLIyxTB2a00A3WJarpOhuj53mHnEgfZwX9W5BVwil6PIuLJuDmsQ2WSj+JF4Yuhonx Pa6Dk9K2yNOdktODL/0HESNZ/R/2gSsMDB2gT8tWYhJEXl2XEi4FAv2lVNVi9DL+asSk YoslipIM1n2DxzC6bQ4EzDEI99qUH7p5E3sYuQncche9KALxi+EfunNnJ82eOmEmpHsq NWCGLx6J+drpVihdUElPvov+T4Xmb0Wm+I2lFmvBlFvedZ4TRyiXjA2HJjT6CcU0mOxm Ngw9WLm2mMOfZsZE2O8keSD+N5actp7sxexmEmFWdZRa8OK+d9ohQD0lBV4iCP1r1ivM C3/Q== X-Gm-Message-State: AOUpUlE0187u9bwkaoT6BU3qOgPQi/qQ8SgcjSDWuay6795LZSPzOWSH C/tS44Dy/kNWmZm2Y42pZq0T6yCX X-Google-Smtp-Source: AAOMgpcTf1iljya8IVDEuk/shCUJLJeuxZOxWzdUWz/bZjgvUC9EIca+vS36RUJGySJL0ISH+pQGFw== X-Received: by 2002:a1c:55c8:: with SMTP id j191-v6mr5544205wmb.67.1532276703329; Sun, 22 Jul 2018 09:25:03 -0700 (PDT) Received: from [192.168.1.68] (athedsl-384757.home.otenet.gr. [79.131.54.243]) by smtp.gmail.com with ESMTPSA id b3-v6sm5548526wmh.23.2018.07.22.09.25.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 09:25:01 -0700 (PDT) From: Andres Almiray Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Sun, 22 Jul 2018 19:24:59 +0300 Subject: Re: fin Message-Id: References: <1291b3a4-9204-d311-f005-bd2f32aae959@arscreat.com> In-Reply-To: To: dev@groovy.apache.org X-Mailer: iPhone Mail (15G77) -1 There=E2=80=99s no need for such a keyword. You don=E2=80=99t get much by= skipping =E2=80=9Cal=E2=80=9D from =E2=80=9Cfinal=E2=80=9D instead we inher= it a lot of trouble with yet another way to define variables/arguments/retur= n types.=20 Sent from my primitive Tricorder > On 22 Jul 2018, at 17:33, Konstantin Boudnik wrote: >=20 > +1 There was APL once ;) > -- > With regards, > Konstantin (Cos) Boudnik > 2CAC 8312 4870 D885 8616 6115 220F 6980 1F27 E622 >=20 > Disclaimer: Opinions expressed in this email are those of the author, > and do not necessarily represent the views of any company the author > might be affiliated with at the moment of writing. >=20 >=20 >> On Sun, Jul 22, 2018 at 2:19 PM, Russel Winder wro= te: >>> On Sat, 2018-07-21 at 23:50 +0200, MG wrote: >>> Hi guys, >>>=20 >>> I have been wondering for a while whether Groovy developers use >>> "def" >>> even if a variable is actually is "final" not only because every >>> Groovy >>> example code uses "def", but also because "final" as a word is >>> longer >>> than "def". >>> Therefore I propose to introduce the shortcut "fin" for "final" in >>> Groovy. >>=20 >> Please don't. >>=20 >> final is just fine as it is. >>=20 >>> e.g. to support >>>=20 >>> class Goo { >>> fin String name >>> fin Goo gooParent >>> Goo(fin String name, fin Goo gooParent) { ... } >>> String gooGoal(fin x) { >>> fin y =3D 2*x >>> fin int z =3D x + y >>> } >>> } >>>=20 >>> Cheers, >>> mg >>=20 >> 1,$s/fin/final/g >>=20 >>>=20 >>>=20 >> -- >> Russel. >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> Dr Russel Winder t: +44 20 7585 2200 >> 41 Buckmaster Road m: +44 7770 465 077 >> London SW11 1EN, UK w: www.russel.org.uk