On Dec 24, 2013, at 10:23 PM, Daniel Micay <danielmi...@gmail.com> wrote:

>> 3. Having a bound of 1 by default. The default should allow for parallelism.
> 
> A bound of 1 by default seems pretty stupid. I've never understood why
> Go does this... it belongs in a separate type.

Go actually has a default bound of 0. When you send on a channel that wasn’t 
allocated with a given bound, it blocks until something else reads. A bound of 
1 allows for a single item to be stored in the channel without blocking.

-Kevin
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to