Ever since I've started to use
bool::then_some(), I've run into some cases where I've wanted to use a negated
bool -- in particular with
(!val.is_empty()).then(|| vec!). In particular because parentheses are needed to sort out precedence, this feels a bit ugly.
Have other people run into this? Would it be worthwhile to add