-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Macro for selecting from multiple ports #1851
Comments
Yes, I think that could work. |
I think with @paulstansifer's new macro system, and a lot of the infrastructure in pipes, we can probably make this work now. I'm currently experimenting. It will be a pretty hairy macro. |
I've been working on the pipe select macro here: https://github.com/mozilla/rust/blob/incoming/src/test/run-pass/pipe-select-macro.rs Due to bugs in the macro system, it doesn't work yet, but I don't see any insurmountable problems. |
This commit has a version of the macro that works: 4ec1dd9 I'm not sure the problem was so much a bug in the macro system as some surprising restrictions on pattern syntax and less than informative error messages... |
This macro seems pretty complete, so I'm going to close this bug. You can import the macro using |
Could macros build on #1847 to create nice syntax for selecting from differently-typed ports?
The text was updated successfully, but these errors were encountered: