4 ms·
Idk, I'd take if err != nil { return nil, err } over any of this :)
by b_e_n_t_o_n 1y ago
Idk, I'd take
if err != nil {
return nil, err
}
over any of this :)
- throwawayqqq11 1y agoAnd now you introduce null and err checks all over your code base. Rust tries to do this ergonomically with the ?-operator, which is not that easy in complex cases but reduces your cognitive load tremendously when possible.