Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sapiogram
· 2y ago · 0 comments
Go's "red" is also "function may return an error"
Comments
[–]
goldsteinq
2y ago
Sure, but it’s a different effect. Go’s asynchronous “red” is either “accepts a cancellation context” or “accepts a output channel” (since goroutines can’t return values normally).