Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Race conditions. With coroutines you’re not supposed to deal with race. If i am understanding the motives


You can write to a channel concurrently.


And to make the concurrency safe you have to pay the price of synchronization.

https://go.dev/tour/concurrency/8

In A Tour of Go, concurrency section, "Equivalent Binary Trees" is an example of paying the price when you don't need it.


its not that you cant, it's that its very expensive.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: