[go-nuts] Re: RFC: function or interface?

2022-04-01 Thread Adam Pritchard
Thank you both for your responses. I’m going to switch to returning structs that implement an unexported interface. I don’t have a super convincing justification, but here are the reasons… 1: It’s unexported because it’s not expected to be implemented externally and passed in. But if a calle

[go-nuts] RFC: function or interface?

2022-03-31 Thread Adam Pritchard
ring to an interface instead? I’m starting to think I should, but I can’t think of what difference it would make. Any feedback would be appreciated. Adam Pritchard ​ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from