Their suggested replacement is closer to C#'s is keyword:
if foo is Some(foo) {
// ...
}
The issue here is that we still have let-else, which can't be translated as easily:
let Some(foo) = foo else {
todo!();
};
Their suggested replacement is closer to C#'s is keyword:
if foo is Some(foo) {
// ...
}
The issue here is that we still have let-else, which can't be translated as easily:
let Some(foo) = foo else {
todo!();
};