4 ms·
what do generics have to do with making it longer? If you want to argue 'usually' then you could consider all the build scripts and XML files, class boilerplat
by hactually 8y ago
what do generics have to do with making it longer?
If you want to argue 'usually' then you could consider all the build scripts and XML files, class boilerplate and exception code of Java to be 'usually longer'.
Please don't troll.
- apta 8y ago> what do generics have to do with making it longer? Code duplication, just one example: https://godoc.org/github.com/cznic/mathutil#Max https://godoc.org/github.com/cznic/mathutil#Max Even with exception handling code, Java is shorter. Build scripts are not part of this discussion.
- svick 7y agoExcept Java's method that does the same (Math.max) does not use generics and instead has overloads for the various numeric types it supports.