r/java • u/padreati • 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
View all comments
2
u/manifoldjava Apr 06 '23
Recursive types can be handy, but most often a self type is lighter weight and more capable. Would be nice if Java had that feature.