oh hey, that’s an interesting fact: Java has a less then ideal generics system because they didn’t introduce it until Java 8, and they had to implement it while also allowing Java to run programs from years ago.
keyword: they didn’t introduce it until Java 8
now paulie, look up what language the java developers ran a hype campaign against in order to replace.
right, it was C++, good. now paulie, look up how long that language has had a generics system. and tell me why it was 4 years before Java was conceived, and why it was 23 years before java got it.
great job sun microsystems. good language. proud of you.
i was postponing having to scrape javadocs to make this project work but i guess i’m doing it now because a company went FUCKING BANKRUPT and GOT BOUGHT OUT before somebody sat down and said “wait shit where’s the generics system”
@zebo vectors, hashmaps, wrapper types, there’s honestly too many examples to name.
i have a good time reading generics, what language are you working with them in?
@zebo also in my specific use case i’m making a rust library for working with minecraft spigot and i’ve decided that instead of spending time writing code to translate java vectors/hashmaps into the native rust vectors/hashmaps, it would be better to just translate them directly, and then maybe later i might add code that turns them into the rust types.
so if i want to see this project done before i die i kind of have to work with this, which makes it infuriating that java’s reflection system just doesn’t give me information on the generics of an object because “oops it doesn’t, my bad”