Skip to content
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

Generate component extensions for destructuring support. #94

Open
marcoferrer opened this issue Dec 12, 2019 · 0 comments
Open

Generate component extensions for destructuring support. #94

marcoferrer opened this issue Dec 12, 2019 · 0 comments

Comments

@marcoferrer
Copy link
Owner

marcoferrer commented Dec 12, 2019

Several cases have come up where users have wanted to be able to destructure message with the familiar kotlin syntax. Although this is highly requested it doesn’t come for free. It can become massively error prone for users if they re arrange fields ids or introduce new ones.

I still think a safe implementation can be provided by allowing users to define a “deconstructor” option within their message. Similar to the common proto support of the method signature option. The trade off is that this would make the component extensions explicitly defined and managed by the proto author instead of implicitly determined by the plugin.

There’s a already a branch in progress with a working example but the majority of the effort needed for this is in writing good documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant