-
Notifications
You must be signed in to change notification settings - Fork 675
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
*Flags don't implement set-like combinators #609
Labels
Comments
You should be able to do
Does that not work for you? |
Closing as I'm assuming this meets or exceeds @cyphar's requirements. |
Sorry for not responding earlier. No, this code doesn't work:
My
|
But the solution would be to implement |
I've implemented this in #615, as well as adding a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One thing I ran into almost immediately when trying to nicely define a set of flags like you would in C (with something like
CLONE_NEWUSER|CLONE_NEWUTS|CLONE_NEWNS
or whatever) is that you can't do it with thenix
structs without declaring a variablemut
and operating on it.What if we made it so you could do this instead?
Which allows you to write it (IMO) more concisely but also doesn't mean that you have to make the variable mutable. It also better matches the
Iterator
combinators.The text was updated successfully, but these errors were encountered: