Hacker News new | ask | show | jobs
by apta 2632 days ago
> what do generics have to do with making it longer?

Code duplication, just one example: https://godoc.org/github.com/cznic/mathutil#Max

Even with exception handling code, Java is shorter. Build scripts are not part of this discussion.

1 comments

Except Java's method that does the same (Math.max) does not use generics and instead has overloads for the various numeric types it supports.