-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KEEP for Self types #356
base: master
Are you sure you want to change the base?
KEEP for Self types #356
Conversation
I really like this. Are there any corresponding YouTrack issues or other conversations that we can link to? |
Cool to have this, reduce a lots of boilerplates |
I would replace the annotation with a modifier. Gate-locking a language feature behind an annotation isn't a common Kotlin thing to do - annotations are usually used for metadata (e.g., class A<this Self>
class B<this Self, T>
class C<T, this Self>
class D<out this Self> That way, you reduce the confusion from the explicit-self-generic syntax (the The modifier's name could also be |
PR