News for hackers. Stuff that matters.
Re:Optional If Expressions by masklinn on Saturday April 15, 2023 @06:05AM (#35579162)
Doesn't seem very useful though, when you can just write that out, or use `bool::then`, or use some weird combinator on `Option` e.g. `Some(42).filter(|_| x)`.
Re:Optional If Expressions by _flux on Sunday April 16, 2023 @07:25AM (#35589063)
Unless you want to return from within the filter with some error return code, or call an asynchronous function.