3 ms·
I'm sure it could introduce something _like_ a result monad, but with the associated very clunky/verbose syntax in golang which reduces to conditionals and lots
by nvarsj 4y ago
I'm sure it could introduce something _like_ a result monad, but with the associated very clunky/verbose syntax in golang which reduces to conditionals and lots of type casts. I guess this is sort of where error is going.
Something like Rust's '?' operator comes to mind. Also, pattern matching with parameter extraction.