An Extremely Common and Terrible Line of Java(paultyma.blogspot.com)
paultyma.blogspot.com
An Extremely Common and Terrible Line of Java
http://paultyma.blogspot.com/2018/02/an-extremely-common-and-terrible-line.html
1 comments
Interesting point. Notably though, a function that could optimize itself based on the exact type given (e.g. runtime “instanceof”) can recover performance while still being general enough to accept anything. If you pass around nothing but exact types, you lose that opportunity.