Remix.run Logo
b_e_n_t_o_n 4 days ago

Idk, I'd take

   if err != nil {
      return nil, err
   }
over any of this :)
throwawayqqq11 3 days ago | parent [-]

And 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.