4 ms·
In that sense .then_some() is sort of a footgun. Compared to a regular if-statement it invites people to write code in a less efficient (and in this case an inc
by EdSchouten 3y ago
In that sense .then_some() is sort of a footgun. Compared to a regular if-statement it invites people to write code in a less efficient (and in this case an incorrect manner). It could just have taken a closure instead.
Edit: it turns out there’s also a .then() that does exactly that.
- IshKebab 3y agoNot really. `unsafe` is the footgun.