You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
🐛 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:
The text was updated successfully, but these errors were encountered: