4 ms·
To me, the `try` implementation is brilliant. It achieves what a real monadic Either / Result implementation would achieve in error handling, it stays simple,
by nine_k 7y ago
To me, the `try` implementation is brilliant.
It achieves what a real monadic Either / Result implementation would achieve in error handling, it stays simple, and it's backwards compatible.
While I'm not a fan of Go in general, I can't help but admire at achieving all this so simply and cleanly (as much as the underlying return-two-values thing can be considered clean).