Doesn't this approach have the same downside as what some critics are saying about evented procedures like node that it would result in spaghetti callback code and worse if you are not careful deadlocks?
The same could be said of Go, but I don't think its true.
I think the lesson of channels is important. If you constrain your communication to a channel then your callbacks will be simpler, not more complicated, because the channel manages the communication for you.
It's like using Unix pipes instead of managing buffers yourself. It's a simple tool, and hides the tedious/ugly bits that nobody wants to see.
I think the lesson of channels is important. If you constrain your communication to a channel then your callbacks will be simpler, not more complicated, because the channel manages the communication for you.
It's like using Unix pipes instead of managing buffers yourself. It's a simple tool, and hides the tedious/ugly bits that nobody wants to see.