Gozala / channel

CSP style channel implementation, for the Channel specification
35 stars 3 forks source link

Swap Channel input with output? #6

Open trusktr opened 9 years ago

trusktr commented 9 years ago

This is confusing:

channel.output.put(x)
var data = channel.input.take()

If we're using words like "input" and "output" to describe parts of a channel, It seems like we'd put something into the input of a channel, and take something out of the output of a channel, so in that case, it'd make more sense as

channel.input.put(x)
var data = channel.output.take()

Isn't it more intuitive that way? Or did I missunderstand something about the concept?