[go-nuts] Re: Check Channel is active or not while Writing as writer Go routine

2024-10-29 Thread tapi...@gmail.com
https://github.com/golang/go/issues/21985 https://github.com/golang/go/issues/28017 Personally, I think this is an interesting idea. On Thursday, October 24, 2024 at 9:08:33 PM UTC+8 Aniket Pandey wrote: > Has anyone have implemented the logic in order to check if the channel is > active if th

Re: [go-nuts] The usage of method call syntax for regular functions as a way to have "generic methods"

2024-10-29 Thread 'Axel Wagner' via golang-nuts
>From an off-list response: 1. It only works if the function is defined in the same package as its >> used, or you'd need to use dot-imports. > > The dot-import in this case seems redundant because we have a variable > with which we try to use a method syntax and this variable has a specific > typ