I’m not sure about removing the Ok part. what if we want to support other stuff in the future? would let? Error(e) = fn() make sense? what about let? MyVariant1(x, y) = fn()? are there scenarios where this would make sense? maybe it would only make sense with else, like Rust does it: let? MyVariant1(x) = fn() else {panic(...)}
↧
Proposing new syntax for zero-cost unwrapping options/results
↧