Closed romshark closed 6 years ago
const chan
is semantically the same as const * Channel
, it's an immutable reference to a mutable channel.
Therefore var ref const chan const Object
describes the following constraints:
const Object
when reading from ref
to this channel is considered immutable and cannot be swapped with another channel of the same type: ref = anotherChan // Compile-time error!
Find out whether and how the
const
qualifier should affect channels.