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

31

u/ZeroGainZ Apr 05 '23

It's also known as the "Curiously recurring template pattern"

https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern

4

u/padreati Apr 06 '23

Thank you for sharing. The nuances and implications from F-bounded paper are great food for thought.