-
Notifications
You must be signed in to change notification settings - Fork 504
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
Reduce probability of breaking binary compatibility - stop using data class
es in public API
#2133
Comments
https://github.com/drewhamilton/Poko could be helpful for classes like |
I prefer that this is resolved before of at latest in the 1.0 version of ktlint. If needed, I am willing to consider to release a |
Expected Behavior
As per https://kotlinlang.org/docs/jvm-api-guidelines-backward-compatibility.html#don-t-use-data-classes-in-an-api data classes aren't recommended to be used in public library API, since they can easily lead to breaking binary compatibility.
Related issues:
Current Behavior
data classes are used in the public api, which may have impact on post-1.0 binary compatibility
Additional information
I'm creating this issue as a result of this comment.
The text was updated successfully, but these errors were encountered: