-
Notifications
You must be signed in to change notification settings - Fork 10
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
Better set operations #2
Comments
Overlap is sometimes perfectly valid. Requiring users to rename their records could be a too big burden. Maybe you can introduce a default scheme for resolving conflicts. |
That is a good strategy, if users need it you can always build on top of it. In scala-records we will use the structural types for this. |
@vjovanov for what exactly? Renames? How would the syntax be? |
Yep for renames, although they would be rather nested records. If you merge two records the collided fields would be in the nested record:
|
currently there is
&
which is a union operator on the key value pairs. The default should probably rather be a disjoint union that throws a type error in case of overlap.Overview of useful operators that should be implemented
&
)|
&
r \ (select field1 & field2)
orr(remove field1 & field2)
orThe text was updated successfully, but these errors were encountered: