ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  What I Hate About Your Programming Language
Subject:   Should have required StringBuffer
Date:   2003-05-14 10:07:23
From:   anonymous2
Response to: Operator overloading in Java

I've seen string concats via + --way-- overused and completely unnecessary. For consistancy, they should have required StringBuffer. To the developer, it's still operator overloading. The implementation of that overload (preprocessing during compilation would be a better term) is irrespective to the simple fact that the language bars using + between Objects, yet Strings are allowed to break this rule.
Essentially, Java should have set a single standard and stuck with it.
Java's single compile and run certainly beats the pants off the compile / link / run tedium with C/C++.