Can we represent “self class” in Java (or Kotlin)?

I think the question title is a little bit confusing, but I can't find a mo…
关注者
44
被浏览
5,275
登录后你可以
不限量看优质回答私信答主深度交流精彩内容一键收藏

github.com/Microsoft/Ty 用了「Polymorphic 'this' type」这么一个名字来指代这个问题,并在里面提到了 Java programmers 常会使用 curiously recurring template pattern 来解决这个问题。