Commit Graph

5 Commits

Author SHA1 Message Date
13f6a6812a result.Wrap - propagate a failed Expect into a new type U
- public API streamline
- Failf[T]("msg") -	originate a failure from a message; embed a cause with %w
- Err[T](err) - sets .err verbatim (the return zero, err / sentinel case)
2026-06-14 11:43:23 +00:00
390ffa19a4 result.Errf 2026-05-05 00:12:54 +00:00
c737e7d6be slides 2026-05-04 19:15:11 +00:00
e204e43e6e use panics as a default error reporting mechanism
- runtime.Goexit() has too much performance overhead, and should be used only under special conditions
- introduce build tags
2026-04-23 21:05:18 +00:00
9599b8c0a3 performance benchmark
+ Switching debug.Stack() → runtime.Callers() saved ~900 ns and ~1 KB per error — the formatted string is gone, just raw program counters stored
2026-04-23 19:50:02 +00:00