Reinier Zwitserloot wrote:
> Specifically: There is considerable harm in enforcing 'final' usage.
> The right answer is obviously: Use 'final' where appropriate, and
> don't where it isn't. Any explicit unbreakable rule is generally a bad
> thing. What should be the default? non-final wins, because its shorter
> and does not require your IDE to magic in extra keywords.
>
What's the "considerable harm in enforcing 'final' usage"? And did you see the
rest of my post, or
did I put you off with the flippant stuff? There's a major set of
argumentation I got into that you
haven't responded to, and I'd be curious to hear your thoughts, because that
really gets at the
issue in more depth.
As for things being better because they're shorter -- if that's really such a
concern, then why are
getters and setters the default? Or "public"? Or descriptive method names vs.
"mpz_cdiv_r_ui"[1]?
Or generics? All of those are lengthier than the alternative, and usually
used via IDE assists.
But they all provided value that make them worth their while as defaults.
BTW, I wasn't making an "explicit unbreakable rule". Just suggesting an
alternative. We both agree
that one should "Use 'final' where appropriate, and don't where it isn't." The
question is how
widespread is its appropriate use? Where is that balance?
[1] http://gmplib.org/manual/Integer-Division.html#Integer-Division
~~ Robert Fischer.
Grails Training http://GroovyMag.com/training
Smokejumper Consulting http://SmokejumperIT.com
Enfranchised Mind Blog http://EnfranchisedMind.com/blog
Check out my book, "Grails Persistence with GORM and GSQL"!
http://www.smokejumperit.com/redirect.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---