Error Handling Across Different Languages

I've tried Go in the past, and the least I could say is that I was not enthusiastic about it. Chief among my griefs was how the language handled errors, or more precisely, what mechanism it provided developers with to manage them. In this post, I'd like to describe how a couple of popular languages cope with errors.

A Time Before Our Time

I could probably go back a long time, but I needed to choose a baseline at some point. In this post, the baseline is C.

Preemptive Scheduling Coroutine Programming Language

The concept of coroutine must be familiar to everyone now. After all, not only LUA, Go, and Kotlin but also C++ all support coroutines.

But different languages have different implementations. Such as LUA, coroutines will be scheduled when someone called yield() or resume().