3 ms·
Wow, that code is as bad as I thought it would be. Yeesh. > Luckily this rarely comes up in this specific form. Well, yeah—it would come up rarely because it
by klodolph 5y ago
Wow, that code is as bad as I thought it would be. Yeesh.
> Luckily this rarely comes up in this specific form.
Well, yeah—it would come up rarely because it only solves the problem under very specific circumstances!
- steveklabnik 5y agoYeah I mean you might be able to make it better, this is just what I would reach for first. It is so rare that I don’t think I’ve ever seen it in any rust codebase I’ve ever looked at.