Re: switch using strings
On 03/02/2011 05:06 AM, Ian wrote:
On 01/03/11 18:02, Lew wrote:
Sorry, I couldn't figure this out - which "it" have you not used yet?
"it" - forward reference to the executor framework, which is a library feature
rather than a language one, so let's just forget I mentioned it eh :)
That still counts when you discuss the use of Java. The API, particularly the
java.* and javax.* package trees, are an integral part of the Java platform
and part of the decision matrix whether to use it.
You are correct that the API is not part of the Java language and there are
times when it's important to distinguish that.
The executor framework is part of the new multi-threading magic that came out
with Java 5 and is also part of what makes modern Java so useful.
So it is valuable for you to highlight it as a significant feature of the
overall Java platform. It also points to a direction - perhaps we should be
content with the language as it will be by JDK 8 and henceforth focus on
adding value to Java through its API.
I believe we've passed a point where people are changing Java just for the
sake of changing Java and not to provide real added value to the language.
The so-called "diamond operator" is a case in point. I expect it to be about
as helpful as autoboxing (a feature I eschew) and perhaps as dangerous (who
knows?).
--
Lew
Honi soit qui mal y pense.