Hey MG :-) 

2. There are a lot of reasons to not have a variable declared as final
(think about loops). Being forced to use another keyword to "un-final" the
variable would break the sense of this whole discussion. And treating all
local variables as final would pose a lot of issues too. I don't think that
this is the way to go.

3. I'm also fine with "fin" as I more care about the alignment (and
therefore "optical consistency") than the actual letters to type :-D.
Although it is rather uncommon choice :-D
Personally, I'd even go a little farther and deprecate "def name" and "final
name" in favour of their java counterparts. I never quite liked these
keywords (no offence) - although I know that this would break almost all
legacy code.

Anyway, the idea to make it more java compatible sound good to me. To sum up
you are suggesting that:
* def is unchanged
* final var/final def = fin/val/let -> changed to work like the java way

Cheers,
Matti



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Reply via email to