Re: Java 7 features
"Joshua Cranmer" <Pidgeot18@verizon.net> wrote in message
news:U4eii.1525$Pv2.1459@trnddc03...
(Yes, I realize that I am about to potentially unleash strong opinions.)
Recently, I was looking around online and came across this (partial)
list
of new Java 7 features. What I want to know is what support/disapproval
people have of these options:
@ Closures
I'm sort of dreading this change, because it means once Java 7's out,
I will no longer consider myself a competent Java programmer. On the other
hand, might be a good opportunity to finally learn what closures are all
about.
@ Strings in switch statements
Fine with me. Strings are already getting special VIP treatment in
Java as it is. Might be worth considering extending this to work with all
objects, as laid out in a post downthread about "switch-equals".
@ Operator overloading for BigDecimal
I thought "No Operator Overloading" was an argument for favoring Java
over C++. The purist in me is already annoyed with the + operator being
overloaded for Strings. This seems like a step in the wrong direction.
@ Language-level XML support
@ Reified generics
@ Superpackages
I'm ignorant and/or apathetic about the above.
@ Removing checked exceptions
I like checked exceptions. I'm part of the crowd that is willing to do
more typing in exchanged for less buggy programs.
Personally, I am in support of items 2 and 5; indifferent on 3, 4, and
6;
and against items 1 and 7.
Would have been nice if you had numbered the items. =P
- Oliver