Navigate Select ESC Close

Why Go Will NEVER Fix Error Handling

2025-06-11 Science & Technology
144.7k
3.0k
753
ThePrimeTime
ThePrimeTime
1.1m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Twitch https://twitch.tv/ThePrimeagen Discord https://discord.gg/ThePrimeagen Become Backend Dev: https://boot.dev/prime (plus i make courses for them) This is also the best way to support me is to support yourself becoming a better backend engineer. ### LINKS https://go.dev/blog/error-syntax By: Robert Griesemer Great News? Want me to research and create video????: https://www.reddit.com/r/ThePrimeagen Kinesis Advantage 360: https://bit.ly/Prime-Kinesis

Top Comments (10)

@roccociccone597 2025-06-11

I was a part of the ? discussion and it just blows my mind how they came up with a good concept and still backed down... We might get arrow functions in Go before a better error handling approach.

430 29 replies
@ilyakurmaz 2025-06-11

Great example of "Perfect is the enemy of good".

379 7 replies
@thrash1337 2025-06-11

that's the golang version of 'you think you do but you don't'

254 8 replies
@constantinegeist1854 2025-06-15

When porting from PHP to Go, explicit error handling helped us find some data consistency bugs because we actually started thinking about error handling. And we found that some lines could throw and break our code (which would result in data corruption) because we didn't realize it could throw and we had no handling in place

51
@oleksiistri8429 2025-06-12

i respect that they do not include every single crap into language like many other langunges do (i am looking at you, c++), they meticulously try and look the outcome, does it worth bloating a language with specific feature or not! This is one of the reason, why i like Go!

39 4 replies
@augustohvdias 2025-12-17

working 7 years with java, 1 year with kotlin, 1 year with scala; and now 4 months with go, i dont mind the current error handling at all. Direct and explicit, easy to track when debugging, everything that we devs need

14
@PreamPinbut 2025-06-14

where I spend my time the most is thinking what message should I put in the error

6 1 replies
@aleksanderrist1287 2025-06-14

The single questionmark as an alias of if err != nil { return err } would be a nice addition. I'm not too sure about the curly brackets after where you can write what happens if the err is not nil.

6
@TagetesAlkesta 2025-06-20

22:16 this is a variation of the dangerous “But Sometimes!” argument where an idea that might otherwise be vastly superior in a multitude of ways is dismissed because of some tiny new unforeseen issue. Technology Connections has a fantastic video on the subject, and I personally believe it should be required viewing for anyone going into any kind to engineering field

5
@arikiri_698 2025-08-06

I like that when someone asks Prime a coding question he answers in ernest

1

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot