▲ | zozbot234 7 months ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||
These are fully equivalent in outcome, though often not low-level implementation. You can use try...catch (called panic...recover in Go) to pack a normal and abnormal return case into the equivalent of a Result<> type. Or just pass an abnormal Result<> back to the caller to manually unwind a single "layer" of the call stack. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | biorach 7 months ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
> These are fully equivalent in outcome They are so different in DX, ergonomics, implementation and traceability that I'm not sure this is true other than in the most abstract sense | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|