▲ | wbl a day ago | ||||||||||||||||||||||||||||||||||
%W exists to solve this | |||||||||||||||||||||||||||||||||||
▲ | Yoric 7 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
It would, if people actually defined new errors. But, as I mentioned in my message, people just use `errors.New` or `fmt.Errorf`, all the way down, so you end up with errors that cannot be matched. Which means, in turn, that if these are errors that should be handled properly (and not just propagated/logged), they cannot. | |||||||||||||||||||||||||||||||||||
▲ | the_gipsy 21 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
How? Stringly matching? That's not typesafe at all. | |||||||||||||||||||||||||||||||||||
|