chan of data-typeis an initialized channel of the specified type. Just a declaration of a channel leaves it initialized to
nil
; before it can be used for communication it must be created. For example,
ch: chan of int; # just declares, sets ch to nil . . . ch = chan of int; # creates channel & assigns it