[rust-dev] RFC: New Rust channel proposal

Jack Moffitt jack at metajack.im
Tue Jan 14 16:52:06 PST 2014


> 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.


More information about the Rust-dev mailing list