Edouard Tavinor
1 min readJul 24, 2019

--

I think it’s also worth mentioning that because adding an error return value changes the signature of a method in go it is impossible to inadvertently ignore an error in go. Think of go errors like checked exceptions in Java (but without the overhead). Errors cannot be invisible in go unless you try explicitly to make them invisible.

This is why i like error handling in go. Your code will not compile unless you make conscious desicions about how you want to deal with the possible errors.

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

--

--

Edouard Tavinor
Edouard Tavinor

No responses yet

Write a response