top | item 38935433

(no title)

sidlls | 2 years ago

That "detail of implementation" is what is used by user code, e.g., `myError.As(...)` uses reflection, implicitly.

discuss

order

Thaxll|2 years ago

Then what? It has 0 performance impact, we're talking about error handling here, it's rare and not in hot path.

sidlls|2 years ago

It does not have 0 performance impact, it's not rare, and in applications that are in the hot path, error handling is also in the hot path.