3 ms·
That's a minor implementation detail that devs almost never have to think about.
by downWidOutaFite 3y ago
That's a minor implementation detail that devs almost never have to think about.
- jimbob45 3y agoYou'll run into it with generic arrays[0] in Java which are reasonably common. [0]https://www.baeldung.com/java-generic-array https://www.baeldung.com/java-generic-array
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- sgift 3y agoAs someone who works with Java all the time I'm the first to admit that something like TypeToken in GSON or comparable things in other libraries is not the greatest of things. I've also more than once wished I could to if(xy instanceof List<Something>), which you cannot do in Java. Can you work around it? Sure. Do I understand why Java has it? Yes. But "minor" .. no, it's not so minor in my experience.