3 ms·
Yes, but we do have a common idiom for error-propagation in Go. It's more explicit than the proposed alternative, in fact.
by omginternets 3y ago
Yes, but we do have a common idiom for error-propagation in Go. It's more explicit than the proposed alternative, in fact.
- lmm 3y agoYou don't have an idiom, you write it out longhand every time, which ends up obscuring the important control flow and business logic under a pile of ceremonial repetition.
- omginternets 3y ago"if err != nil {...}" is the idiom, my friend.