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

Go reconsider struct code generation #2564

Closed
RomainMuller opened this issue Feb 11, 2021 · 2 comments
Closed

Go reconsider struct code generation #2564

RomainMuller opened this issue Feb 11, 2021 · 2 comments
Assignees
Labels
bug This issue is a bug. effort/medium Medium work item – a couple days of effort p1

Comments

@RomainMuller
Copy link
Contributor

RomainMuller commented Feb 11, 2021

🐛 Bug Report

The current implementation of structs does not embed base types, means adding a property to a parent struct (even if optional) is not a breaking change in TS, but is source-breaking in Go, which is bad.

Embedding structs has consequences on the initialisation pattern (struct value literals are coupled to their embedding structure), and interfaces can help alleviate this problem, but this is not perfect.


Relevant links:

@RomainMuller RomainMuller added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 11, 2021
@RomainMuller RomainMuller self-assigned this Feb 11, 2021
@RomainMuller RomainMuller added p1 effort/medium Medium work item – a couple days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Feb 16, 2021
@RomainMuller
Copy link
Contributor Author

Updated aws/aws-cdk-rfcs#292 accordingly. Pending team review.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2021

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. effort/medium Medium work item – a couple days of effort p1
Projects
None yet
Development

No branches or pull requests

1 participant