Reflect the half-duplex nature of pipes in their types#19382
Reflect the half-duplex nature of pipes in their types#19382jbapple wants to merge 5 commits intorust-lang:masterfrom
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @huonw (or someone else) soon. |
|
Nice use of the type system! I wonder if we could call the I think @aturon and/or @alexcrichton may have some thoughts about this. |
|
Thanks! I tried using have to be which means but for issue #11047. There are a few other ways we could avoid that empty struct. First, we could make it a module, but then rustc warns, "module Second, we could promote the functions to the top level of the module (possibly renaming them to disambiguate them from other Third, Thoughts? |
|
@jbapple thanks for taking a look at these apis! They're definitely sorely in need of a redesign. The API proposed here leaves me with many questions, and we may want to hold off this work to get a more holistic view of the entire
Would you be ok holding off this work for now? The |
|
Yes, I don't see any need to rush into anything. While big |
This produces more code in the implementation, but a cleaner API.
|
This most recent change addresses the previous concerns as follows:
|
|
Closing for reasons stated here (RFC coming soon) |
No description provided.