Gozala / Gozala/channel

Swap Channel input with output?

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
36
Forks
3
PR merge metrics
No merged PRs in 30d

Description

This is confusing:

``` js
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

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

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.