Re:Error handling in Go web apps shouldn't be so awkward
by Thaxll on Tuesday January 09, 2024 @09:30PM
(#38935403)
But this is a detail of implementation, user code does not use reflection with errors.
[ Parent
| on HN ]
Re:Error handling in Go web apps shouldn't be so awkward
by sidlls on Tuesday January 09, 2024 @09:35PM
(#38935433)
That "detail of implementation" is what is used by user code, e.g., `myError.As(...)` uses reflection, implicitly.
Re:Error handling in Go web apps shouldn't be so awkward
by Thaxll on Tuesday January 09, 2024 @09:45PM
(#38935491)
Then what? It has 0 performance impact, we're talking about error handling here, it's rare and not in hot path.