|
|
|
|
|
by pcwalton
3719 days ago
|
|
Exceptions don't have any runtime costs beyond those which Go is already paying by mandating unwinding. In fact, C++-style exceptions are strictly less expensive in the non-exceptional case than defer, because of defer's dynamic semantics. Go's semantics require a slower exceptional control flow scheme than almost any other language I'm aware of, including dynamic ones like JavaScript. |
|
I am not so sure I would agree with this, but I don't use go enough to have a firm opinion myself.