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
signature.asc
Description: This is a digitally signed message part
