Comment

Comment by billjings

> I'm confused about why we're comparing GOTO control flow with channels, since they're completely unrelated. I guess you can make a mess with each when you use them inappropriately? With GOTO, you should avoid it because there are better options (notably, conditional statements).

Notes On Structured Concurrency goes into some depth on this comparison:

https://vorpus.org/blog/notes-on-structured-concurrency-or-g...

If channel sends are being used as invocations, then this description can apply just as well to channels as it does to the go statement.

parent billjings 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton