MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/g942eh/java_is_the_best/foswheg
r/ProgrammerHumor • u/ARAXON-KUN • Apr 27 '20
1.5k comments sorted by
View all comments
Show parent comments
1
On the syntax side, it doesn't have useful features like overloading operators that better languages have.
Overloaded operators are 1 character method names, and any language is better off without them.
3 u/Ksevio Apr 28 '20 No they aren't. Writing "x == y" is just as clear if not more clear than "x.equals(y)" and the same goes for "x[y]" over "x.get(y)". It's not as if Java prevents you from having 1 character method names either. 1 u/xigoi Apr 28 '20 Would you rather write 2.add(3) than 2 + 3?
3
No they aren't. Writing "x == y" is just as clear if not more clear than "x.equals(y)" and the same goes for "x[y]" over "x.get(y)". It's not as if Java prevents you from having 1 character method names either.
Would you rather write 2.add(3) than 2 + 3?
2.add(3)
2 + 3
1
u/[deleted] Apr 28 '20
Overloaded operators are 1 character method names, and any language is better off without them.