Thanks Brian, Axel & Ian for your very thorough treatment of my post.
When I first read about golang interfaces, I was impressed with how elegant
and powerful they are, so it's very disappointing that my first opportunity
at leveraging them was such a fail! Your explanations did a remarkable job
On Sunday, 28 February 2021 at 10:36:55 UTC Brian Candler wrote:
> On Sunday, 28 February 2021 at 03:03:17 UTC Deiter wrote:
>
>> The example uses a “short assignment” statement, so it’s not obvious what
>> “concrete” type c.StdoutPipe() returns
>>
>
> You can't tell
>
By which I meant "you
On Sunday, 28 February 2021 at 03:03:17 UTC Deiter wrote:
> The example uses a “short assignment” statement, so it’s not obvious what
> “concrete” type c.StdoutPipe() returns
>
You can't tell, and indeed it might not return any concrete type at all (it
may return nil).
Given
stdout, err :=