Let's make closed channels more useful

I tried to play with go runtime again to seamlessly overwrite empty value returned from closed channel with custom one. Check it out https://github.com/1pkg/gotcha and my blog post https://1pkg.github.io/posts/lets_make_closed_channels_more_useful/.

To summarize:

Final conclusion

I [John_Brown] highly discourage anyone to use golatch in any production code or maybe even any code at all as it’s extremely unsafe and not reliable and won’t be supported in foreseeable future.

1 Like

Yes @petrus, the whole idea of the post is not the practical usefulness of my piece of code.
But rather the general ability of making such changes in go runtime directly if needed, bypassing some restrictions established in go design.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.