The more I use sum types for error handling the more convinced I am that exceptions are very good, actually.
This is simultaneously the best and worst parts of manual error handling. When I write Go, for example, I manually wrap nearly every error with hand-crafted context and provenance. It’s wonderful. But now Go code I interact with does no such thing. It’s awful.
-
-
Also simultaneously the best and worst parts of exception handling. When I write code in a language with exceptions, almost nobody, myself included, does the work of customizing provenance and context. Despite the convenience, just stack traces is eventually not good enough.
-
At ITA, we used to have macros that would use dynamic binding of variables and condition handlers to introduce debugging frames with a human-readable explanation of the evaluation context. That was great for debugging and logging.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.