As we know that Go doesn't support optional parameters, but, while working with channels and more specifically buffered channels I come to the realisation that make
function do accept an optional parameter for buffer size. I'm little bit of confused if Go team doesn't like optional parameter then why they had supported a function which is so frequently used with this anti-pattern?
Well, to not deviate from the original question much, can anyone help explaining how, under the hood, this works?