Can we represent “self class” in Java (or Kotlin)?
关注者
44被浏览
5,275登录后你可以
不限量看优质回答私信答主深度交流精彩内容一键收藏
https://github.com/Microsoft/TypeScript/pull/4910 用了「Polymorphic 'this' type」这么一个名字来指代这个问题,并在里面提到了 Java programmers 常会使用 curiously recurring template pattern 来解决这个问题。