-1 There’s no need for such a keyword. You don’t get much by skipping “al” from “final” instead we inherit a lot of trouble with yet another way to define variables/arguments/return types.
Sent from my primitive Tricorder > On 22 Jul 2018, at 17:33, Konstantin Boudnik <[email protected]> wrote: > > +1 There was APL once ;) > -- > With regards, > Konstantin (Cos) Boudnik > 2CAC 8312 4870 D885 8616 6115 220F 6980 1F27 E622 > > 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. > > >> On Sun, Jul 22, 2018 at 2:19 PM, Russel Winder <[email protected]> wrote: >>> On Sat, 2018-07-21 at 23:50 +0200, MG wrote: >>> Hi guys, >>> >>> 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. >> >> Please don't. >> >> final is just fine as it is. >> >>> e.g. to support >>> >>> class Goo { >>> fin String name >>> fin Goo gooParent >>> Goo(fin String name, fin Goo gooParent) { ... } >>> String gooGoal(fin x) { >>> fin y = 2*x >>> fin int z = x + y >>> } >>> } >>> >>> Cheers, >>> mg >> >> 1,$s/fin/final/g >> >>> >>> >> -- >> Russel. >> =========================================== >> 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
