-
-
Notifications
You must be signed in to change notification settings - Fork 26
feat(abg)!: replace data class perks by code generation in bindings #1644
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
base: vampire/binding-version-v2
Are you sure you want to change the base?
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
fcb93fe to
f2e6c05
Compare
6e0c383 to
05942ab
Compare
f2e6c05 to
f9bff8a
Compare
26ff564 to
915be83
Compare
5b756f4 to
a485fe4
Compare
915be83 to
01e7a87
Compare
a485fe4 to
6c58c0d
Compare
01e7a87 to
781eb1b
Compare
6c58c0d to
66b9afd
Compare
781eb1b to
248813f
Compare
66b9afd to
f8e466f
Compare
248813f to
a5da3b1
Compare
f8e466f to
eb02b5a
Compare
a5da3b1 to
f58ac6b
Compare
eb02b5a to
36a0a91
Compare
f58ac6b to
f11c738
Compare
36a0a91 to
8895541
Compare
f11c738 to
5e87ccb
Compare
8895541 to
4281b5d
Compare
5e87ccb to
c89a7e1
Compare
| - The `equals` method will work like before. | ||
| - The `hashCode` method will work like before. | ||
| - The `toString` method will work like before. | ||
| - Destructuring assignments are not possible anymore as this will likely break silently or during |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I initially wanted to ask why this change is made under v2 of the bindings server, and it's probably because of this remark about destructuring. I think it's enough to provide component1...componentN functions, then destructuring should work, and we wouldn't have to bump the route version just yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My plan is to revisit our discussion we had on Slack to ensure that there's no simpler option to achieve what we want. Sometimes ideas come after time 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see if someone has some interesting take on this: https://kotlinlang.slack.com/archives/C8C4JTXR7/p1729233924861659
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's enough to provide component1...componentN functions, then destructuring should work, and we wouldn't have to bump the route version just yet.
It would not be, as said on Slack.
It was intentional I left them out.
And additionally the copy method now also enforces named-arguments which is also a breaking change.
So to replicate here too, the goal here was not to somehow make it compatible with the upcoming Kotlin versions, but to improve the API to the originally intended way.
That this also fixes the copy visibility thing is merely a by-product and just was the trigger to finally have a look at it.
4281b5d to
1f9acc7
Compare
c89a7e1 to
fb71bbb
Compare
5fdc48f to
4fa6848
Compare
53c27b0 to
c9e8a2f
Compare
bce3f2f to
30806a5
Compare
c9e8a2f to
d0ef59a
Compare
30806a5 to
2f28590
Compare
d0ef59a to
1e38b69
Compare
2f28590 to
90c380f
Compare
1e38b69 to
54a0d0e
Compare
90c380f to
83e3806
Compare
0af24c3 to
16cb955
Compare
4210942 to
d3ecf79
Compare
78db07b to
88a11f6
Compare
d3ecf79 to
f72df5e
Compare
88a11f6 to
5b5bb0f
Compare
f72df5e to
3591e61
Compare
5b5bb0f to
2974c43
Compare
3591e61 to
8df1350
Compare
2974c43 to
481b627
Compare
8df1350 to
dd21b0f
Compare
481b627 to
b4d13ce
Compare
dd21b0f to
1542f03
Compare
b4d13ce to
e788dc0
Compare
1542f03 to
98fc017
Compare

Fixes #1629