Closed as not planned
Description
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:
type Result[T any] struct {
// must be private
ok T
err error
}