arjun dhar
1 min readOct 8, 2020

--

Nice and useful in concept.

Extending this; what happens when we wrap errors (https://blog.golang.org/go1.13-errors) and bubble them.

Often where an error surfaces isn't the cause. However usage of runtime.Caller for the full stack can have a cost associated also.

Dont know what the best answer is, but sure would like the trace to contain the locations of all root errors.

Java & C# default idea of exception. By default an exception gives you that out of the box.

In go lang the thinking is that panics are unhandled and hence reveal the trace, errors are handled and hence left to the user.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

arjun dhar
arjun dhar

Written by arjun dhar

Software development enthusiast since I was 8 yrs old. Love communicating on anything regarding innovation, community development … ∞

No responses yet

Write a response