Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
language:types [2023/04/09 19:54] rajit [Parameterized types] |
language:types [2023/04/09 19:55] (current) rajit [Parameterized types] |
||
---|---|---|---|
Line 232: | Line 232: | ||
both directions, use: | both directions, use: | ||
<code act> | <code act> | ||
- | chan(bool, | + | // a bool is transferred from sender to receiver, and |
+ | // an int is transferred from the receiver to the sender | ||
+ | chan(bool, | ||
</ | </ | ||
These are sometimes called //exchange channels//, since data is exchanged between the sender and receiver. | These are sometimes called //exchange channels//, since data is exchanged between the sender and receiver. |