You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realise this is technically not a language change, but if you are trying to change many func signatures from (T, error) to errors.Result[T], that is a large and breaking change that will affect the vast majority of Go code out there today.
Add a "Result" structure for handling errors like in rust or make it built-in.
why?
Lots of people consider go-way error handling very annoying and inconvenient, so there must be something that will make error handling in go better.
Solution(for full implementation check out my repository)
make a Result struct:
The text was updated successfully, but these errors were encountered: