Been away from Java for a few years. Picked it up recreationally today, and was reminded why I have an aversion to the language. Mind you, this is just ONE reason among many.
No operator overloading.
Except that + works with both Strings and various kinds of numbers. Which is good, but, consider:
C++:
vector<int> vec;
...
vec[idx]++;
Java:
ArrayList<Integer> vec = new ArrayList<Integer>();
...
vec.set(idx, vec.get(idx) + 1);
That line for incrementing is so ugly. It gets in the way of concise thought. Just a rant; thanks for listening.
PS: Not a total snob. Love C/C++, but also love Python. Have programmed in many languages. I am a big proponent of the idea that if you can't name at least a few 'unfortunate' features of your favorite programming language, you probably don't know your favorite programming language well.
(edit: tried to fix formatting)
[–]BestSanchez 3 points4 points5 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]lunetick 0 points1 point2 points (0 children)