7 ms·
You may disagree, but the assertion is correct. Java was deliberately designed to restrict what programmers could do. The belief was that this would help main
by btilly 16y ago
You may disagree, but the assertion is correct. Java was deliberately designed to restrict what programmers could do. The belief was that this would help maintainability, and particularly when trying to get large teams to cooperate.
That Java users have found ways to get around deliberate limitations does not change the fact that this was the original intent of the language design.
- technomancy 16y agoTrue; the point of the article wasn't "Scala is not better than Java", it was "Scala is not 'a better Java'".
- stephenjudkins 16y agoThe part I was disagreeing with is that Scala gives programmers more "rope to hang themselves with". You may be correct that restricting what programmers could do was a goal of Java, but writing Java in practice gives a tremendous number of opportunities to hang oneself. Apologies for not being more clear. Further, it's not like this complexity is something that arose independently of Java itself. One of the most frequently cited examples of super-complicated insanity in the Java world is J2EE, which is a standard and set of libraries created by Sun itself. If the creators of language have managed to create and propagate one of the biggest tarpits available in Java, that reflects poorly on the overall Java ecosystem.