News for hackers. Stuff that matters.
Re:Notes on structured concurrency, or: Go statement conside... by fixermark on Wednesday April 25, 2018 @07:35PM (#16927433)
> It then uses an exception-like model for error propagation to "solve" error handling (which is fairly easy to handle with a channel).

If none of your code ever actually waits on the error channel when you spawn a goroutine, what happens?

Is there any circumstance where that behavior is preferable to guaranteeing something must wait on the error channel?

Re:Notes on structured concurrency, or: Go statement conside... by arghwhat on Thursday April 26, 2018 @03:55AM (#16929824)
Go's error paradigm is through return values that can be ignored, so an error channel would mimic "non-async" error handling in this case: Checking an error is is always up to the developer.

The discussion about error paradigms (exceptions vs. globals vs. error values, forced checking vs. free choice, etc.) is quite a big one, and arguably an entirely different topic.