|
|
|
|
|
by marcus_holmes
3313 days ago
|
|
I don't know why you're getting downvoted, you're right. I love Go, it's my language of choice. There's a clear difference between calling a function sync or async. It's nice that we can choose to do either at will. Oh, except that if it's an async call we have to use channels to communicate with it. Which is cool, but it's a different mechanism than if it's a sync call. It's exactly the same as the red/blue rant about JS. If it's async you have to hand it a channel to talk to you on. If it's sync you can just wait for it to return. Async/Await same same but different. Yes, the language does some nice stuff under the covers about pausing goroutines, but it only does that if you have multiple goroutines. If you code everything without using goroutines (and channels) then it's not concurrent and won't do the nice stuff. It'll pause for i/o just like any other language. |
|