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

💡 Struct builder supporting inheritance #126

Open
amis92 opened this issue Mar 18, 2020 · 1 comment
Open

💡 Struct builder supporting inheritance #126

amis92 opened this issue Mar 18, 2020 · 1 comment
Labels
API design Generated API design discussions enhancement

Comments

@amis92
Copy link
Owner

amis92 commented Mar 18, 2020

HaloFour wrote up an interesting solution for struct Builder that also supports inheritance and allows nice selective With update.

See https://gist.github.com/amis92/dfc52fb774d44194f8846b2f560c2f96

This would solve our following issues:

@bboyle1234 @atifaziz @MKMZ request for comments :)

This could be a new "kind" of Record, mostly because it has a very different API. Maybe [NominalRecord] pointing to the fact it's nominal as in non-ordered/name-bound? Other ideas?

@amis92 amis92 added API design Generated API design discussions enhancement labels Mar 18, 2020
@amis92
Copy link
Owner Author

amis92 commented Mar 18, 2020

Gist taken from dotnet/csharplang#3174 (comment)

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

No branches or pull requests

1 participant