FAQ

On Wednesday, March 6, 2013 2:07:46 PM UTC-6, gordon...@gmail.com wrote:
That's a curious little hole in the memory model. It says
A receive from an unbuffered channel happens before the send on that
channel completes.
but I'd like it to say
A receive from an unbuffered (or buffered, but full) channel happens
before the send on that channel completes.
Well if it receives on a full buffered channel it will be from the front,
and your sent data will be at the end (FIFO).
I wouldn't consider that the same as an unbuffered channel since the
received data is not the same as the sent data.
Perhaps in the case of make(chan T, 1) ?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

People

Translate

site design / logo © 2021 Grokbase