it may not be required. I think the incorrect way that some of the stream types led me down the wrong route. If we define them using '=', we avoid creating a new type meaning that the channels maintain compatibilty when passed into functions with 'end' (either chan\<- or \<-chan) specifed as the channel type, eg:
it may not be required. I think the incorrect way that some of the stream types led me down the wrong route. If we define them using '=', we avoid creating a new type meaning that the channels maintain compatibilty when passed into functions with 'end' (either chan\<- or \<-chan) specifed as the channel type, eg:
define new types, when they should probably be defined as:
so a function defined as:
can be invoked as:
without resulting in type violation.