|
|
|
|
|
by orf
45 days ago
|
|
There are always trade-offs and there is never one best way to do something. Stack-based coroutines is one way to do it. A relevant trade-off here is overhead, requiring a runtime and narrowing the potential use-cases this can serve (i.e embedded real-time stuff). If you don’t care about supporting such use cases you can of course just create a copy of goroutines and be pretty happy with the result. |
|