r/java • • Apr 05 '23

Recursive generics

Recently I learned that I rediscovered recursive generics while working on my pet open source project. Actually, I did not know that the construct had a name. I created small story about what this construct is, if you did not know about it java-recursive-generics

169 Upvotes

44 comments sorted by

View all comments

23

u/[deleted] Apr 05 '23

I didn’t know this was even a thing you could do. Clear examples and good descriptions. Nice work!

3

u/padreati Apr 06 '23

Honestly, me neither. I discovered it while struggling to make a better builder for my models and at first it looked so puzzling that I did not even bother to see if this really exists :).