> I'm skeptical about combining Chan and SharedChan. Maintaining that > distinction is useful for expressing the programmer's intent and would > certainly make any analysis that cared to distinguish between single and > multiple producers easier to implement (off the top of my head, knowing > you're the only one with a Chan means you don't have to deal with potential > race conditions arising from interleaving of messages from different > producers).
I think the core issue about that is that the person who writes the type signature of a function doesn't always know the contexts in which its used. jack. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
