3 ms·
That's convention, the language doesn't prohibit you from overloading. Also, Java is not significantly more verbose than C#.
by Delmania 11y ago
That's convention, the language doesn't prohibit you from overloading. Also, Java is not significantly more verbose than C#.
- Too 11y agoRead again, operator overloading, not function overloading.
- jimrandomh 11y agoMy experience has been that in practice, Java is much more verbose than C#, mainly due to C#'s compact getters and setters, LINQ, and operator overloading.
- stickfigure 11y agohttps://projectlombok.org/ https://projectlombok.org/ eliminates getters & setters; LINQ and operator overloading I happily live without. The main disadvantage to Java is checked exceptions, but it's possible to avoid them for the most part. Having rewritten some C# code in Java recently, the result was not significantly more or less verbose. That said, badly written code will suck in either language.